git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 3/6] manual: Fix example finding commits referencing given content.

From
RWRalf Wildenhues <ralf.wildenhues@gmx.de>
Date
Oct 9, 2007, 21:02 UTC
Message-ID
<20071009210219.GE31317@ins.uni-bonn.de>
In-Reply-To
<20071009205755.GB31317@ins.uni-bonn.de>
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.
---
 Documentation/user-manual.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 6adeca7..2b1b324 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`
 -------------------------------------------------
 
-- 
1.5.3.3.g34c6d
Previous: Ralf WildenhuesNext: Ralf Wildenhues
Message 4 of 10 in “Some small documentation fixes”
  1. 0/6 Some small documentation fixesRalf Wildenhues, Oct 9, 2007
  2. 1/6 Fix some typos, punctuation, missing words, minor markup.Ralf Wildenhues, Oct 9, 2007
  3. 2/6 Fix wording in push definition.Ralf Wildenhues, Oct 9, 2007
  4. 3/6 manual: Fix example finding commits referencing given content.Ralf Wildenhues, Oct 9, 2007
  5. 4/6 manual: add some markup.Ralf Wildenhues, Oct 9, 2007
  6. 5/6 manual: use 'URL' instead of 'url'.Ralf Wildenhues, Oct 9, 2007
  7. 0/6 manual: Fix or remove em dashes.Ralf Wildenhues, Oct 9, 2007
  8. Thomas AdamOct 9, 2007
  9. Ralf WildenhuesOct 9, 2007
  10. Thomas AdamOct 9, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.