Re: How to find where a branch was taken from.
- From
Jeff King <peff@peff.net>
- Date
- Mar 22, 2008, 16:41 UTC
- Message-ID
- <20080322164136.GA7611@coredump.intra.peff.net>
- In-Reply-To
- <47E4F7A0.6060702@glidos.net>
On Sat, Mar 22, 2008 at 12:12:16PM +0000, Paul Gardiner wrote:
Show 5 quoted lines
> Yes, that's exactly what I need too. I need to produce it > programatically. I notice gitk displays, for each commit, > the branches that include it. If I knew a command for > deriving that, I could iterate through HEAD, HEAD~1, HEAD~2... > until I see a remote branch.
How about:
git name-rev --refs='refs/remotes/*' $COMMIT
?
-Peff