My position on this subject is that "index" is a good name, but that
description is a terrible description, and "index" is a word that needs a
good description in context. If we just said up front:
Git's "index" is a staging area that you use to prepare commits. It maps
filenames to content. It allows git to remember changes you want to put
into the next commit while you do more work. For normal commits, it is
not necessary to use the index, but it is very helpful for complicated
commits, because it lets you focus on the part you're still working on
while git remembers the part you're done with.
I think people would get it. (If it were called the "cache" still, it
would be hopeless, because "cache" implies false things; "index" doesn't
imply anything initially.)
Of course, we'd still have to disabuse people of the notion that the index
can store the information "there's nothing at this path yet, but I'm
interested in it", because that's a piece of information people often know
before a file is ready, and think git would be able to remember in a
staging area.
-Daniel
*This .sig left intentionally blank*
-
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