manual: Fix example finding commits referencing given content.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 9 Oct 2007 21:02:19 +0000 (23:02 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 16 Oct 2007 02:11:02 +0000 (22:11 -0400)
If I'm handed a file, then it typically lives outside the
working directory.  git-log only operates on in-tree files,
so the first 'filename' should be an in-tree one, or it should
look at all files.  This patch does the latter, so it would
also find renamed files.  However, it is also slower.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Documentation/user-manual.txt

index b09dcc4152f6c4f975702bbeb4e372ace94eaef7..93d20f8a2bfea50c5cdfc036acaf62fabe389007 100644 (file)
@@ -926,7 +926,7 @@ file such that it contained the given content either before or after the
 commit.  You can find out with this:
 
 -------------------------------------------------
-$  git log --raw --abbrev=40 --pretty=oneline -- filename |
+$  git log --raw --abbrev=40 --pretty=oneline |
        grep -B 1 `git hash-object filename`
 -------------------------------------------------