aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Jacob <guillaume@absolut-sensing.com>2026-03-16 14:15:36 +0000
committerJunio C Hamano <gitster@pobox.com>2026-03-16 10:15:34 -0700
commit5514f146171349afd1965c13f92c786ed90f8dbe (patch)
treed912e0eb7fcb1144cad919d831d14015d619dabc
parentf368df439b31b422169975cc3c95f7db6a46eada (diff)
downloadgit-5514f146171349afd1965c13f92c786ed90f8dbe.tar.xz
doc: fix git grep args order in Quick Reference
The example provided has its arguments in the wrong order. The revision should follow the pattern, and not the other way around. Signed-off-by: Guillaume Jacob <guillaume@absolut-sensing.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/user-manual.adoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/user-manual.adoc b/Documentation/user-manual.adoc
index d2b478ad23..c6996a2141 100644
--- a/Documentation/user-manual.adoc
+++ b/Documentation/user-manual.adoc
@@ -4466,7 +4466,7 @@ $ git show # most recent commit
$ git diff v2.6.15..v2.6.16 # diff between two tagged versions
$ git diff v2.6.15..HEAD # diff with current head
$ git grep "foo()" # search working directory for "foo()"
-$ git grep v2.6.15 "foo()" # search old tree for "foo()"
+$ git grep "foo()" v2.6.15 # search old tree for "foo()"
$ git show v2.6.15:a.txt # look at old version of a.txt
-----------------------------------------------