From: Daniel Pittman <daniel@rimspace•net>
To: git@vger•kernel.org
Subject: git-svn, and which branch am I on?
Date: Sat, 28 Feb 2009 19:50:08 +1100 [thread overview]
Message-ID: <87ljrr7xof.fsf@rimspace.net> (raw)
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
next reply other threads:[~2009-02-28 9:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-28 8:50 Daniel Pittman [this message]
2009-02-28 14:54 ` git-svn, and which branch am I on? Björn Steinbrink
2009-02-28 15:03 ` Peter Harris
2009-02-28 17:14 ` Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ljrr7xof.fsf@rimspace.net \
--to=daniel@rimspace$(echo .)net \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox