From: Paul Tan Date: Tue, 09 Jun 2015 09:18:14 GMT Subject: Re: [PATCH 5/6] am --abort: support aborting to unborn branch Message-ID: In-Reply-To: On Tue, Jun 9, 2015 at 4:10 AM, Junio C Hamano wrote: > Paul Tan writes: > >> When git-am is first run on an unborn branch, no ORIG_HEAD is created. >> As such, any applied commits will remain even after a git am --abort. > > I think this answered my question on 4/6; that may indicate that > these two are either done in a wrong order or perhaps should be a > single change. Ah right, patch 4/6 was too sneaky in that it tried to do the "support unborn branch" thing as well, which should only be handled in this patch. I still think the patches should be separate though since they are conceptually different. 4/6 modifies the "index clean up" function, while 5/6 modifies the "reset HEAD" function. Thanks, Paul