Re: non-empty index with git commit -a

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

 



On Wed, Feb 16, 2011 at 03:41:35PM +0100, Michael J Gruber wrote:

> > If you want to have an option that specifically prevents the "git commit
> > -a" muscle memory thing, then go for it. I'm guessing it is the most
> > common "oops" one. Even with an index reflog, you might want it on top.
> > 
> > But it just seems silly to me to not protect at the same time against
> > the other ways you can lose state from the index.
> > 
> so that keeping one backup would be enough? I.e. an automated way of
> doing "cp index index.bak" before an index update and some "reset"
> incarnation to revive the copy?

No, I am not proposing one backup. I am proposing a reflog with multiple
entries that would be expired on the regular reflog schedule.

-Peff
--
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]