aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-05 23:42:07 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-05 23:42:07 -0800
commit971e829cd84cf95203cec44d22d0e009f98ddbf5 (patch)
treecb444c4dec360e625709b3a1db91d1e99acf9197 /Documentation/git.txt
parent29fb15152584455590905726cb5a0e26ea26e9eb (diff)
parent823ab40fd4adc5bf5b5c66b6d189deae34d2a138 (diff)
downloadgit-971e829cd84cf95203cec44d22d0e009f98ddbf5.tar.gz
git-971e829cd84cf95203cec44d22d0e009f98ddbf5.tar.xz
Merge branch 'jk/pathspec-literal'
Allow scripts to feed literal paths to commands that take pathspecs, by disabling wildcard globbing. * jk/pathspec-literal: add global --literal-pathspecs option Conflicts: dir.c
Diffstat (limited to 'Documentation/git.txt')
-rw-r--r--Documentation/git.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 7a3f03b5c..05c0b942b 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -428,6 +428,11 @@ help ...`.
Do not use replacement refs to replace git objects. See
linkgit:git-replace[1] for more information.
+--literal-pathspecs::
+ Treat pathspecs literally, rather than as glob patterns. This is
+ equivalent to setting the `GIT_LITERAL_PATHSPECS` environment
+ variable to `1`.
+
GIT COMMANDS
------------
@@ -796,6 +801,16 @@ for further details.
as a file path and will try to write the trace messages
into it.
+GIT_LITERAL_PATHSPECS::
+ Setting this variable to `1` will cause git to treat all
+ pathspecs literally, rather than as glob patterns. For example,
+ running `GIT_LITERAL_PATHSPECS=1 git log -- '*.c'` will search
+ for commits that touch the path `*.c`, not any paths that the
+ glob `*.c` matches. You might want this if you are feeding
+ literal paths to git (e.g., paths previously given to you by
+ `git ls-tree`, `--raw` diff output, etc).
+
+
Discussion[[Discussion]]
------------------------