Skip to content

Commit 5514f14

Browse files
guillaume-jcbgitster
authored andcommitted
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>
1 parent f368df4 commit 5514f14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/user-manual.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4466,7 +4466,7 @@ $ git show # most recent commit
44664466
$ git diff v2.6.15..v2.6.16 # diff between two tagged versions
44674467
$ git diff v2.6.15..HEAD # diff with current head
44684468
$ 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()"
44704470
$ git show v2.6.15:a.txt # look at old version of a.txt
44714471
-----------------------------------------------
44724472

0 commit comments

Comments
 (0)