git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to determine a branch whether has a specified commit
@ 2019-12-19  2:35 wuzhouhui
  2019-12-19  3:09 ` Bryan Turner
  0 siblings, 1 reply; 3+ messages in thread
From: wuzhouhui @ 2019-12-19  2:35 UTC (permalink / raw)
  To: git

Hi,

I know
    git branch --contains <commit>
can display all local branches that has specified commit. However, specify a
branch and commit, I don't know how to determine whether this branch contains
this commit.

I think
    git branch --contains <commit> | grep <branch name>
is not good enough. Does anyone have a better solution?

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-19  4:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-19  2:35 How to determine a branch whether has a specified commit wuzhouhui
2019-12-19  3:09 ` Bryan Turner
2019-12-19  4:50   ` Jeff King

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).