From: Mike Hommey <mh@glandium.org>
To: git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH] show-branch --upstream: add upstream branches to the list of branches to display
Date: Tue, 13 Jan 2015 10:33:49 +0900 [thread overview]
Message-ID: <20150113013349.GA26587@glandium.org> (raw)
In-Reply-To: <1420708657-20811-1-git-send-email-mh@glandium.org>
On Thu, Jan 08, 2015 at 06:17:37PM +0900, Mike Hommey wrote:
> `git show-branch --upstream` is equivalent to `git show-branch
> $(git for-each-ref refs/heads --format '%(refname:short)')
> $(git for-each-ref refs/heads --format '%(upstream:short)')`
>
> `git show-branch --upstream foo bar` is equivalent to `git show-branch
> foo bar $(git for-each-ref refs/heads/foo refs/heads/bar
> --format '%(upstream:short)')`
>
> Combined with --topics, it shows commits that are NOT on any of
> the upstream branches.
>
> Signed-off-by: Mike Hommey <mh@glandium.org>
> ---
>
> Note that in the --topics --upstream case, when there are different
> upstreams branches involved, only the merge-base of all of them is
> shown. I'm not sure if it's desirable to show more. The output as it
> is works for my own use cases.
Some example output (where inbound/default and b2g-inbound/default are two
different upstream repositories):
$ git show-branch --upstream HEAD
! [HEAD] Bug 1120680 - try: -b do -p emulator,emulator-jb,emulator-kk -t none -u none
! [b2g-inbound/default] Bumping manifests a=b2g-bump
--
+ [HEAD] Bug 1120680 - try: -b do -p emulator,emulator-jb,emulator-kk -t none -u none
+ [b2g-inbound/default] Bumping manifests a=b2g-bump
+ [b2g-inbound/default^] Backed out changeset ffdc6e420153 (bug 1107009) for Android crashes/asserts.
+ [b2g-inbound/default~2] Bumping manifests a=b2g-bump
-- [HEAD^] Merge m-c to b2g-inbound. a=merge
$ git show-branch --upstream --topics HEAD
! [HEAD] Bug 1120680 - try: -b do -p emulator,emulator-jb,emulator-kk -t none -u none
! [b2g-inbound/default] Bumping manifests a=b2g-bump
--
+ [HEAD] Bug 1120680 - try: -b do -p emulator,emulator-jb,emulator-kk -t none -u none
-- [HEAD^] Merge m-c to b2g-inbound. a=merge
$ git show-branch --upstream --topics
! [bug1107677] Bug 1107677 - Enable chunk recycling for 128 chunks in jemalloc3
! [bug1110760] Bug 1110760 - Followup to avoid build failure with Windows SDK v7.0 and v7.0A
! [bug1120272] Bug 1120272 - wip
* [bug1120680] Bug 1120680 - try: -b do -p emulator,emulator-jb,emulator-kk -t none -u none
! [inbound/default] Bug 762449 - Enable jemalloc 3 by default, but don' make it ride the trains yet. r=njn
! [b2g-inbound/default] Bumping manifests a=b2g-bump
------
* [bug1120680] Bug 1120680 - try: -b do -p emulator,emulator-jb,emulator-kk -t none -u none
+ [bug1120272] Bug 1120272 - wip
+ [bug1110760] Bug 1110760 - Followup to avoid build failure with Windows SDK v7.0 and v7.0A
+ [bug1107677] Bug 1107677 - Enable chunk recycling for 128 chunks in jemalloc3
+ [bug1107677^] Bug 1107677 - Port relevant parts from bug 1073662 part 6
+ [bug1107677~2] Bug 1107677 - Port the relevant parts from bug 1073662 part 5
+++*++ [bug1110760~183] Bug 1118950 - Fix mistyped DEBUG condition in GlobalHelperThreadState(). r=bhackett.
Mike
next prev parent reply other threads:[~2015-01-13 1:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-08 9:17 [PATCH] show-branch --upstream: add upstream branches to the list of branches to display Mike Hommey
2015-01-13 1:33 ` Mike Hommey [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-02-11 1:16 Mike Hommey
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=20150113013349.GA26587@glandium.org \
--to=mh@glandium.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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;
as well as URLs for NNTP newsgroup(s).