emacs-devel
[Top][All Lists]
Advanced

[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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]