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

Re: [Q] Finding the commit that removed a symbol?

From
Jonathan del Strother <maillist@steelskies.com>
Date
Aug 5, 2008, 11:47 UTC
Message-ID
<57518fd10808050447h2df6da07vb001ed8862076992@mail.gmail.com>
In-Reply-To
<200808051343.07370.brian.foster@innova-card.com>

On Tue, Aug 5, 2008 at 12:43 PM, Brian Foster <brian.foster@innova-card.com> wrote:

Show 18 quoted lines
>
>  I'm a bit puzzled as to how to do find a commit which
>  removed a symbol.  This is not a 'bisect' per se (or at
>  least I don't think it is ?); I know exactly what I am
>  looking for, but am not quite sure how to find it.
>
>  I know that between tags A (older) and B (younger)
>  a certain symbol S, defined in file F, vanished.
>  A:F has S; B:F does not.  (There are many commits
>  affecting F between A and B, albeit most don't involve
>  S per se.)  S isn't mentioned in any commit comments,
>  else I could search the output of:   git log A..B -- F
>
>  Actually, using gitk(1) — gitk A..B -- F — I've found
>  what I'm looking for, so I guess what I'm now wondering
>  is if there's a better/easier/faster(/non-GUI ?) way of
>  doing this?   (My git-newbie-ness may be showing here!)
>
You probably want git log -S'MySymbol'
Previous: Brian FosterNext: Brian Foster
Message 2 of 3 in “[Q] Finding the commit that removed a symbol?”
  1. Brian FosterAug 5, 2008
  2. Jonathan del StrotherAug 5, 2008
  3. Brian FosterAug 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.