From: Guillaume Jacob Date: Mon, 16 Mar 2026 14:15:36 +0000 (+0000) Subject: doc: fix git grep args order in Quick Reference X-Git-Tag: v2.54.0-rc0~41^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5514f146171349afd1965c13f92c786ed90f8dbe;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- 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 -----------------------------------------------