From: Junio C Hamano Date: Sat, 11 Nov 2006 20:12:42 GMT Subject: Re: check if a commit is ascendent of a specific commit Message-ID: <7v64dlkait.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20061111192321.GJ4862@socrates.priv> Tom Prince writes: > On Sat, Nov 11, 2006 at 10:43:47AM -0800, Junio C Hamano wrote: >> "Nguyen Thai Ngoc Duy" writes: >> >> > Hi, >> > I want to create "git-amend-commit" to be able to amend commits before >> > HEAD. So I need to check whether the commit I'm going to amend is >> > ascendent of HEAD. Is there any way to check that? >> >> Ascendant is a word from astorology -- you mean ancestor ;-). > > Or antecedent. Sorry, there is no "or" here -- check our documentation ;-).