aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-03-24 12:31:32 -0700
committerJunio C Hamano <gitster@pobox.com>2026-03-24 12:31:32 -0700
commit04a7124af063f06ec31618b8a14abec6a48a21bb (patch)
treecd2a9fe81d07da551f4118fa2eb7e5f7467f0cef
parent49e6a7cd63793459c397dd9e1d772c41f997067a (diff)
parent5514f146171349afd1965c13f92c786ed90f8dbe (diff)
downloadgit-04a7124af063f06ec31618b8a14abec6a48a21bb.tar.xz
Merge branch 'gj/user-manual-fix-grep-example'
Fix an example in the user-manual. * gj/user-manual-fix-grep-example: doc: fix git grep args order in Quick Reference
-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 7696987117..64009baf37 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
-----------------------------------------------