Re: git and bzr

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

 



Alan Chandler wrote:
No you won't. If you don't use update-index, then index will match HEAD and you will commit changes in the working tree. That is the way for newbies

As soon as you do the first update-index the index will no longer match HEAD, so commit will do the same as it does now.

And if you are not sure which you have done then presumably you do what you do now, or git commit -a or git commit -i as you need.

Plus, one assumes, the git-generated comments in the commit message will tell you what kind of commit it has decided to do.

I like this suggestion a lot. Thinking back over my git usage recently, which has included both styles of commits (though mostly -a ones), I think this would have done the right thing by default in every case.

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