[Zabre, please keep the Cc: list when replying] On 2009.01.28 13:29:36 -0800, Junio C Hamano wrote:With "checkout", I'm still a bit unsure about which term to use, because of the behaviour you get with, for example, "git checkout HEAD -- directory". It always just adds or replaces files, but never removes them. So it's not really like taking the old directory out of the repo and using that instead. For example: git rm dir/old_file echo 123 > dir/new_file git add dir/new_file git checkout HEAD -- dir That won't remove dir/new_file from the index (and of course it won't drop it from the working tree). That's the one thing where "git checkout HEAD -- dir" differs from "git reset HEAD -- dir && git checkout -- dir". IIRC we've talked about that on #git a few months ago, but I don't recall what conclusions we came up with. It would probably be better to say that checkout only works with the blobs (because the index doesn't have entries for trees, right?) that exist in the given tree-ish. And thus it doesn't remove entries from the index. But that feels a bit convoluted. :-/ Björn -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Benjamin Herrenschmidt | Re: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Parag Warudkar | BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0] |
| Christer Weinigel | Re: [PATCH] USB: mark USB drivers as being GPL only |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Arjan van de Ven | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gregory Haskins | Re: [RFC PATCH 14/17] kvm: add a reset capability |
git: | |
