git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Dailey <rcdailey.lists@gmail.com>
To: Git <git@vger.kernel.org>
Subject: Show containing branches in log?
Date: Wed, 2 Jul 2014 09:50:57 -0500	[thread overview]
Message-ID: <CAHd499A78BRVawWSHNnzJcD1Ca7RfFeEnJf0SB7py1MD5qwL0g@mail.gmail.com> (raw)

I know that with the `git branch` command I can determine which
branches contain a commit. Is there a way to represent this
graphically with `git log`? Sometimes I just have a commit, and I need
to find out what branch contains that commit. The reason why `git
branch --contains` doesn't solve this problem for me is that it names
almost all branches because of merge commits. Too much ancestry has
been built since this commit, so there is no way to find the "closest"
branch that contains that commit.

Is there a way to graphically see what is the "nearest" named ref to
the specified commit in the logs?

             reply	other threads:[~2014-07-02 14:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-02 14:50 Robert Dailey [this message]
2014-07-02 16:34 ` Show containing branches in log? Jeff King
2014-07-02 16:52   ` Robert Dailey
2014-07-02 16:52   ` Jason Pyeron
2014-07-02 16:59     ` Robert Dailey
2014-07-03 14:18 ` Peter Krefting
2014-07-03 17:25   ` Jeff King
2014-07-03 19:41 ` Øyvind A. Holm
2014-08-01 18:01   ` Robert Dailey
2014-08-25 23:35   ` Robert Dailey

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=CAHd499A78BRVawWSHNnzJcD1Ca7RfFeEnJf0SB7py1MD5qwL0g@mail.gmail.com \
    --to=rcdailey.lists@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;
as well as URLs for NNTP newsgroup(s).