Re: [PATCH 5/6] am --abort: support aborting to unborn branch

2015-06-09 Thread Paul Tan
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 > thes

Re: [PATCH 5/6] am --abort: support aborting to unborn branch

2015-06-08 Thread Junio C Hamano
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 sin

[PATCH 5/6] am --abort: support aborting to unborn branch

2015-06-06 Thread Paul Tan
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. To be consistent with the behavior of git am --abort when it is not run from an unborn branch, we empty the index, and then destroy the branch pointed to by