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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 5, 2008 at 12:43 PM, Brian Foster
<brian.foster@xxxxxxxxxxxxxxx> wrote:
>
>  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'
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux