Thread (1 message) 1 message, 1 author, 2020-05-07

Re: check if one branch contains another branch

From: Junio C Hamano <hidden>
Date: 2020-05-07 23:42:00

Alexander Mills [off-list ref] writes:
I assume that:

git branch -d  xxx

will prevent a delete if the current branch doesn't contain xxx..
I don't want to have to checkout  origin/dev in order to run that command,
that's one part of the problem
In that case, don't you want to learn, not just if your 'dev' has
anything that is not merged/accepted by origin/dev, what commits
in 'dev' are not yet merged in origin/dev?

 $ git log origin/dev..dev

would show them.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help