From 9cb6e59a94f750d49aadcb1d594daa717f9fbd5a Mon Sep 17 00:00:00 2001 From: Guillaume Jacob Date: Mon, 16 Mar 2026 14:11:29 +0100 Subject: [PATCH] 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 --- Documentation/user-manual.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/user-manual.adoc b/Documentation/user-manual.adoc index 76969871176e58..64009baf370231 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 -----------------------------------------------