Re: check if one branch contains another branch
- From
Alexander Mills <alexander.d.mills@gmail.com>
- Date
- May 7, 2020, 23:12 UTC
- Message-ID
- <CA+KyZp6pvqqNnOOj0ap9ekPdv9mZg2u_NQuwFgMXfwfV17SrYQ@mail.gmail.com>
- In-Reply-To
- <xmqq1rnv2vi2.fsf@gitster.c.googlers.com>
so it would be:
feature_branch='my_branch' # the branch that I want to ensure is completely merged into origin/dev git merge-base origin/dev --is-ancestor "$feature_branch"
that won't work? since git merge-base only works with current branch?
On Thu, May 7, 2020 at 4:08 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 14 quoted lines
> > Alexander Mills <alexander.d.mills@gmail.com> writes: > > > I am looking for a command: > > > > 1> if branch x contains branch y > > > > right now all I can find is > > > > 2> if current branch contains commit y > > > > can someone please accomplish #1 ? > > Study "git merge-base --is-ancestor" perhaps?
-- Alexander D. Mills New cell phone # (415)730-1805 linkedin.com/in/alexanderdmills