On Thu, 30 Nov 2006 16:21:56 -0800 (PST), Linus Torvalds wrote:Call me insane. I think it is very strange that the following command sequences commit different content for myfile: echo old > myfile git add myfile echo new > myfile git commit compared to: echo old > myfile git add myfile echo new > myfile git commit myfile The difference there is very subtle and really does prevent a reasonable, "just ignore the index and you can use git comfortably". Now, the behavior above can be explained. You and I both understand it just fine. And Nico's proposed tutorial document even explains it, (twists and all). But it is strange, and I cannot see how the first case is at all useful. The point is that by-and-large I don't ever want to commit anything that is not present in my working tree at the time I type "commit". That's precisely why I'm typing "commit" at that time. If I do ever want to commit content that is not currently in my working tree, then I should have to do something exceptional. Otherwise, git will always have user-interface traps that will trip people up. You might point at my first example and say that the timing of my "git add" command is the exceptional thing I did to trigger the old commit. But the second command above destroys that explanation. In the second, the timing of "git add" doesn't trigger any exceptional behavior at all. The new content of the file is still committed. You're explaining the behavior, but not providing any justification for this being the right thing based on what a user actually wants to do. -Carl
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| David Newall | Re: Slow DOWN, please!!! |
| Andrew Morton | Re: Linux 2.6.21-rc4 |
git: | |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Dale Farnsworth | Re: [PATCH 01/39] mv643xx_eth: reverse topological sort of functions |
