Re: Reverting an uncommitted revert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 19 May 2009, Joshua Jensen wrote:

> So here's the idea: What if Git, upon a revert change (or git reset --hard
> HEAD), "committed" the changes to be reverted and then did the revert with a
> 'git reset --hard HEAD^'?  The reverted files would be disconnected from a
> branch, but they would be available in the reflog to retrieve.

I think there is indeed some value in having a commit of the work 
directory dirty state automatically made before this state is discarded, 
and stuff a reference to that commit in the HEAD reflog.  I think such a 
feature would need to be made configurable and active by default.


Nicolas
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]