Re: [PATCH v2] rebase: add --forget to cleanup rebase, leave everything else untouched
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Nov 10, 2016, 11:22 UTC
- Message-ID
- <CACsJy8CHWZyFgZu1=VKCQc+hbHUmZiAQ9ToL=NDF=YBEkLfbog@mail.gmail.com>
- In-Reply-To
- <CACsJy8D9SHjwb2Ug_DYKmSO+dDxkkqwBFViQrW4eDqbJFjHESw@mail.gmail.com>
On Thu, Nov 10, 2016 at 6:09 PM, Duy Nguyen <pclouds@gmail.com> wrote:
Show 15 quoted lines
> On Thu, Nov 10, 2016 at 3:12 AM, Junio C Hamano <gitster@pobox.com> wrote: >> Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes: >> >>> --- >>> v2 changes just the subject line >> >> That's not sufficient, is it? What you did in the documentation >> would raise the same "Hmph, is this only about HEAD?" and unlike the >> commit subject, it will carve it in stone for end-users. > > Oops. I forgot about git-rebase.txt. How about this? > > --forget:: > Abort the rebase operation but leave HEAD, the index and > working tree untouched.
Or, since --abort describes it as "reset HEAD to the original branch", we could write "Abort the rebase operation. Unlike --abort, HEAD is not restored back to the original branch". Index and worktree are implied by "not restored". Not sure if it's too subtle.
-- Duy