Junio C Hamano wrote: > A Large Angry SCM <gitzilla@gmail.com> writes: ... > > While this may be a good start, you need a lot more than this if > you want to do (1) and (2): > > The tree object contained by a commit is by definition a full > tree snapshot, so if you want to do a WD_Prefix, you somehow > need a way to come up with the final tree that is a combination > of what write-tree would write out from such a partial index > (i.e. an index that describes only a subdirectory) and the rest > of the tree from the current HEAD. I think you can more or less > do this change to Porcelain using today's git core. The > sequence to emulate it with the today's git would be: I think you misunderstood, the index file would list all of the tree entries of the the checked out commit, same as the current index, but would flag the entries that are actually present in the working directory. The WD_Prefix is to identify which index entries _can not_ be part of the working directory, and where the working directory fits in the full index. That way, all the information needed by the top level write-tree is still in the index and the cache-tree extension. - 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.htmlReceived on Fri Sep 15 06:19:36 2006
This archive was generated by hypermail 2.1.8 : 2006-09-15 06:21:21 EST