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

Re: git log -S doesn't find some commits

From
PBPieter de Bie <pdebie@ai.rug.nl>
Date
Nov 4, 2008, 23:06 UTC
Message-ID
<0A948471-7FAA-489A-A86C-D014C6E4C8C9@ai.rug.nl>
In-Reply-To
<87fxm7rtb7.fsf@gollum.intra.norang.ca>
On Nov 4, 2008, at 11:59 PM, Bernt Hansen wrote:
Show 12 quoted lines
>                  o--o--o--o-------------------M--F--o-- .. --o master
>                 /                            /
> A--o-- .. --o--o-------------o--o--B--C--X--D
>
>
> where commits A, B, C, D, and F all modify lines with
> 'org-publish-validate-link'.  M is a merge commit and X has an empty  
> log
> message.
>
> $ git checkout 8ea076e2de2b3721bd813ea5a2df1b53d0c25055 # commit F
> $ git log -Sorg-publish-validate-link
B,C,X and D are not part of 'F', so why should they be included?

You can do something like 'git log -S... F D' to show commits that are also in D, or git log --all to show all commits.

Previous: Bernt HansenNext: Johannes Schindelin
Message 2 of 7 in “git log -S doesn't find some commits”
  1. Bernt HansenNov 4, 2008
  2. Pieter de BieNov 4, 2008
  3. Johannes SchindelinNov 4, 2008
  4. Junio C HamanoNov 4, 2008
  5. Bernt HansenNov 5, 2008
  6. Junio C HamanoNov 5, 2008
  7. Bernt HansenNov 5, 2008

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.