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>
Guillaume Jacob committed
Mar 16, 2026 at 14:15 UTC
5514f146171349afd1965c13f92c786ed90f8dbe
1 file changed
+1
-1
Documentation/user-manual.adoc
+1
-1
@@ -4466,7 +4466,7 @@ $ git show # most recent commit
4466
$ git diff v2.6.15..v2.6.16 # diff between two tagged versions
4467
$ git diff v2.6.15..HEAD # diff with current head
4468
$ git grep "foo()" # search working directory for "foo()"
4469
-$ git grep v2.6.15 "foo()" # search old tree for "foo()"
4469
+$ git grep "foo()" v2.6.15 # search old tree for "foo()"
4470
$ git show v2.6.15:a.txt # look at old version of a.txt
4471
-----------------------------------------------
4472