From: Junio C Hamano Date: Fri, 31 Aug 2012 18:45:20 GMT Subject: Re: [PATCH 2/4] merge-base: "--is-ancestor A B" Message-ID: <7v3932oq7z.fsf@alter.siamese.dyndns.org> In-Reply-To: Martin von Zweigbergk writes: > On Fri, Aug 31, 2012 at 10:25 AM, Junio C Hamano wrote: > ... >> I think "merge-base -h" will get this for free thanks to parseopt. > > It seems not, or maybe I'm using the wrong terminology; I meant to > include it in the first part of the below. > > usage: git merge-base [-a|--all] ... > or: git merge-base [-a|--all] --octopus ... > or: git merge-base --independent ... > > -a, --all output all common ancestors > --octopus find ancestors for a single n-way merge > --independent list revs not reachable from others > --is-ancestor is the first one ancestor of the other? Ahh. As most of the modern parse-optified ones just say "git cmd " or something like that, I wasn't paying attention to the upper part. Will amend again. Thanks.