Mike Hommey <mh@xxxxxxxxxxxx> writes: > On Mon, Aug 20, 2007 at 10:39:57PM +0200, David Kastrup <dak@xxxxxxx> wrote: >> > And it has permissions associated with these hashes. >> >> No, with the files. Think again: the link between file system and >> repository is the index, and the current index format has no >> representation for trees or directories. >> >> So git _can't_ store any information about a _directory_, since no >> information about directories passes through the index. > > If, as Jan suggested in a previous message, you introduce > directories in the index, I still don't see why you would need two > entries in the tree object... As I already said: you don't. It may just be _convenient_ in the _index_ for doing single pass merge collision detection (when a directory is replaced by a file or vice versa). But there would be no additional information stored in the index, and it definitely would not be worth to do double entries in the repository: the repository is already capable of representing all the desired information and it would be wasteful to introduce any complications there when the current format already is fine. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum - 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