summaryrefslogtreecommitdiff
path: root/Documentation/git-grep.txt
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-04-28 15:50:09 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-04-28 15:50:09 -0700
commit33a106098824f50ec0e2e7d642cea26f9a384da4 (patch)
tree82cf90ba177f38481e628803fbc9cc8b3bbe669d /Documentation/git-grep.txt
parentMerge branch 'ds/log-exclude-decoration-config' (diff)
parentgrep: follow conventions for printing paths w/ unusual chars (diff)
downloadtgif-33a106098824f50ec0e2e7d642cea26f9a384da4.tar.xz
Merge branch 'mt/grep-cquote-path'
"git grep" did not quote a path with unusual character like other commands (like "git diff", "git status") do, but did quote when run from a subdirectory, both of which has been corrected. * mt/grep-cquote-path: grep: follow conventions for printing paths w/ unusual chars
Diffstat (limited to 'Documentation/git-grep.txt')
-rw-r--r--Documentation/git-grep.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt
index cdf8e26b47..a7f9bc99ea 100644
--- a/Documentation/git-grep.txt
+++ b/Documentation/git-grep.txt
@@ -206,8 +206,10 @@ providing this option will cause it to die.
-z::
--null::
- Output \0 instead of the character that normally follows a
- file name.
+ Use \0 as the delimiter for pathnames in the output, and print
+ them verbatim. Without this option, pathnames with "unusual"
+ characters are quoted as explained for the configuration
+ variable core.quotePath (see git-config(1)).
-o::
--only-matching::