git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn, and which branch am I on?
@ 2009-02-28  8:50 Daniel Pittman
  2009-02-28 14:54 ` Björn Steinbrink
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Daniel Pittman @ 2009-02-28  8:50 UTC (permalink / raw)
  To: git

G'day.

I recently got asked a question about git-svn that I had no idea how to
answer, and which I am actually curious to know how to find out.

The general question was: in git, how do I identify where this branch
came from?

Specifically, this was about 'git svn', but also generally how to
identify this information in git.

So, with a repository branch layout like this:

  master        (local)
  testing       (local)
  trunk         (remote)
  v100          (remote)

How would I find out which remote branch master and trunk came from?


To restate that, because I am not sure if that is clear, given this
layout of branches:

     trunk (remote)
     |
 o---o---o---o---o  branch master
  \
   \
    o---o---o---o branch testing
    |
    v100 (remote)

How can I identify that 'testing' came from the 'v100' branch, and that
master came from the 'trunk' branch?


Ideally, I would like to work this out on the command line, without
needing to reference gitk or another graphical tool, but even a solution
that used them would be fine.

Initially I figured there would be some equivalent of the Mercurial
'glog' output available, showing this; for reference the second and
third examples here are what I was envisaging:
http://www.selenic.com/mercurial/wiki/index.cgi/GraphlogExtension

(from that display I could infer where testing and master came from,
 rather than directly getting the answer, but that is just fine.)


...and, finally, is the reason that I am finding it hard to explain this
because I have an expectation of how things work that doesn't match up
with git?  In other words, is the question actually meaningless?

Regards,
        Daniel

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

end of thread, other threads:[~2009-02-28 17:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-28  8:50 git-svn, and which branch am I on? Daniel Pittman
2009-02-28 14:54 ` Björn Steinbrink
2009-02-28 15:03 ` Peter Harris
2009-02-28 17:14 ` Jakub Narebski

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).