git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Duy Nguyen <pclouds@gmail.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: Find a topic branch containing a commit
Date: Wed, 27 Jul 2016 19:42:33 +0200	[thread overview]
Message-ID: <CACsJy8CMnywB8AdmLxB8LnsznHrMTieoezhaQS=2r1pnM8ONZA@mail.gmail.com> (raw)

Before I start doing anything silly because I don't know it can
already be done without waving my C wand like a mad man...

I often do this: find a commit of interest, the commit itself is not
enough so I need a full patch series to figure out what's going, so I
fire up "git log --graph --oneline" and manually search that commit
and trace back to the merge point, then I can "git log --patch". Is
there an automatic way to accomplish that? Something like "git branch
--contains" (or "git merge --contains")?

PS. Sometimes I wish we could optionally save cover letter in the
merge commit. Sometimes the "big plan" is hard to see by reading
individual commit messages.
-- 
Duy

             reply	other threads:[~2016-07-27 17:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-27 17:42 Duy Nguyen [this message]
2016-07-27 17:50 ` Find a topic branch containing a commit Stefan Beller
2016-07-27 18:02   ` Stefan Beller
2016-07-27 18:07     ` Duy Nguyen
2016-07-27 18:03   ` Duy Nguyen
2016-07-28 13:46     ` Michael Haggerty
2016-07-28 15:11       ` Junio C Hamano

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACsJy8CMnywB8AdmLxB8LnsznHrMTieoezhaQS=2r1pnM8ONZA@mail.gmail.com' \
    --to=pclouds@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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).