* search branches which contain a blob id
@ 2009-09-30 12:38 Reto Glauser
2009-09-30 13:43 ` Tomas Carnecky
0 siblings, 1 reply; 2+ messages in thread
From: Reto Glauser @ 2009-09-30 12:38 UTC (permalink / raw)
To: git
To get a list of branches which contain a specific commit we use:
$ git branch --contains <commit id>
Is there a similar way to get a list of branches with respect to a
specific blob (e.g. the actual code change a commit introduces)?
Obvious use-case: One isn't interested in the commit information (author,
parent, date) but merely in the set of changes a commit introduces.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: search branches which contain a blob id
2009-09-30 12:38 search branches which contain a blob id Reto Glauser
@ 2009-09-30 13:43 ` Tomas Carnecky
0 siblings, 0 replies; 2+ messages in thread
From: Tomas Carnecky @ 2009-09-30 13:43 UTC (permalink / raw)
To: Reto Glauser; +Cc: git
On Sep 30, 2009, at 2:38 PM, Reto Glauser wrote:
> To get a list of branches which contain a specific commit we use:
>
> $ git branch --contains <commit id>
>
> Is there a similar way to get a list of branches with respect to a
> specific blob (e.g. the actual code change a commit introduces)?
Blob == contents of a file. To see what code changed you need to
compare two blobs (or trees).
> Obvious use-case: One isn't interested in the commit information
> (author,
> parent, date) but merely in the set of changes a commit introduces.
git log -S'string to search for'
searches the history for commits which introduced or removed that
string from a file.
Or 'git log -p', if you want to see the diff alongside the other
information that log gives you.
tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-30 13:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30 12:38 search branches which contain a blob id Reto Glauser
2009-09-30 13:43 ` Tomas Carnecky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox