From: Junio C Hamano Date: Thu, 07 May 2020 23:08:53 GMT Subject: Re: check if one branch contains another branch Message-ID: In-Reply-To: Alexander Mills 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?