Re: check if one branch contains another branch
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 7, 2020, 23:08 UTC
- Message-ID
- <xmqq1rnv2vi2.fsf@gitster.c.googlers.com>
- In-Reply-To
- <CA+KyZp7TELrswPjNgB99BXXHEXi5pRr5bO3g_wy7zBvv1R4Kww@mail.gmail.com>
Alexander Mills <alexander.d.mills@gmail.com> writes:
Show 9 quoted lines
> 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?