manual: Fix example finding commits referencing given content.
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>
Ralf Wildenhues committed
Oct 9, 2007 at 23:02 UTC
477ff5b71aca9a3d05c8f83182eeb98d7a8f92ee
1 file changed
+1
-1
Documentation/user-manual.txt
+1
-1
@@ -926,7 +926,7 @@ file such that it contained the given content either before or after the
926
commit. You can find out with this:
927
928
-------------------------------------------------
929
-$ git log --raw --abbrev=40 --pretty=oneline -- filename |
929
+$ git log --raw --abbrev=40 --pretty=oneline |
930
grep -B 1 `git hash-object filename`
931
-------------------------------------------------
932