git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to find where a branch was taken from.
@ 2008-03-21  9:05 Paul Gardiner
  2008-03-21  9:13 ` Junio C Hamano
  0 siblings, 1 reply; 12+ messages in thread
From: Paul Gardiner @ 2008-03-21  9:05 UTC (permalink / raw)
  To: git; +Cc: osronline

I need a command that will find the remote branch from which
the currently checked out branch was started. I don't know
git very well, and the only way I can think to do it so far
is to iterate over the remote branches and find the one
for which git-rev-list <branch>..HEAD gives the smallest
number of objects. I'm guessing there must be a better
way. Any ideas?

Cheers,
	Paul.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-03-22 16:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21  9:05 How to find where a branch was taken from Paul Gardiner
2008-03-21  9:13 ` Junio C Hamano
2008-03-21  9:15   ` Junio C Hamano
2008-03-21 17:39   ` Avery Pennarun
2008-03-21 18:32     ` Charles Bailey
2008-03-21 18:48       ` Avery Pennarun
2008-03-21 20:03         ` Dmitry Potapov
2008-03-21 20:22           ` Daniel Barkalow
2008-03-21 20:25             ` J. Bruce Fields
2008-03-22 12:12     ` Paul Gardiner
2008-03-22 16:41       ` Jeff King
2008-03-22 16:54         ` Paul Gardiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).