[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removing rollback from VC mode - request for comment
From: |
Sergey Organov |
Subject: |
Re: Removing rollback from VC mode - request for comment |
Date: |
Thu, 11 Dec 2014 23:53:37 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Sergey Organov <address@hidden> writes:
> "Eric S. Raymond" <address@hidden> writes:
>
>> Eli Zaretskii <address@hidden>:
>>> > In other VCSes it would be difficult to even attempt this.
>>>
>>> ??? It's known as "reverse cherry-picking", and is AFAIK possible in
>>> Git, bzr, and hg.
>>>
>>> Or maybe I don't understand what ttn was alluding to.
>>
>> You don't, not quite. Reverse cherry pick doesn't actually do the git
>> equivalent of removing a delta; the history is not altered. Reverse
>> cherry pic only requires forward composition of a reversed patch onto
>> the current branch tip - a much, *much* more tractable problem.
>>
>> The git equivalent of actually removing a delta would be *really
>> hard*.
>
> Nah. Try
>
> git rebase --onto HEAD~7 HEAD~6
>
> to kill HEAD~6 commit.
And even if it's only some chunk(s) of the diff of the entire commit, it
is still rather simple, using --interactive option.
--
Sergey.
- Removing rollback from VC mode - request for comment, Eric S. Raymond, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, David Kastrup, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Thien-Thi Nguyen, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Eric S. Raymond, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Eli Zaretskii, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Sergey Organov, 2014/12/11
- Re: Removing rollback from VC mode - request for comment,
Sergey Organov <=
- Re: Removing rollback from VC mode - request for comment, Eric S. Raymond, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Stephen J. Turnbull, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Steinar Bang, 2014/12/12
- Re: Removing rollback from VC mode - request for comment, Stephen J. Turnbull, 2014/12/11
- Re: Removing rollback from VC mode - request for comment, Eric S. Raymond, 2014/12/11
Re: Removing rollback from VC mode - request for comment, Steinar Bang, 2014/12/11