From: Bruce Korb <bruce.korb@gmail.com>
To: GIT Development <git@vger.kernel.org>
Subject: How do I get the name of the parent branch?
Date: Sun, 03 Jul 2011 09:49:19 -0700 [thread overview]
Message-ID: <4E109D8F.3030402@gmail.com> (raw)
Google results point to how to get to commits that have gone into
parent branches, but fundamentally I just want to have a script
that constructs a diff of what has changed since the latest branch
without having to do manual research to figure out the name.
As best as I can tell, you use:
git format-patch -o pdir --ignore-if-in-upstream $branch
the hard part seems to be (but ought not be) figuring out
the value for "$branch".
next reply other threads:[~2011-07-03 16:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-03 16:49 Bruce Korb [this message]
2011-07-03 17:43 ` How do I get the name of the parent branch? Jay Soffian
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=4E109D8F.3030402@gmail.com \
--to=bruce.korb@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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