summaryrefslogtreecommitdiff
path: root/Documentation/user-manual.txt
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2007-10-09 21:02:19 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-10-16 02:11:02 (GMT)
commit477ff5b71aca9a3d05c8f83182eeb98d7a8f92ee (patch)
tree83829e078f6bf7f3cedd45cc5c618ef05e6631c2 /Documentation/user-manual.txt
parent2c619db8845e6259995ccb4f666e5bbc636c9e14 (diff)
downloadgit-477ff5b71aca9a3d05c8f83182eeb98d7a8f92ee.zip
git-477ff5b71aca9a3d05c8f83182eeb98d7a8f92ee.tar.gz
git-477ff5b71aca9a3d05c8f83182eeb98d7a8f92ee.tar.bz2
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>
Diffstat (limited to 'Documentation/user-manual.txt')
-rw-r--r--Documentation/user-manual.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index b09dcc4..93d20f8 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -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`
-------------------------------------------------