EDIT:如果你回答我的问题,那么就应该说为什么。
http://progit.org/book/ch9-2.html 作者指出:
吉特通常通过利用你的平流区或指数来创造树木,并从中书写树木物体。
我的问题是,如何知道两个组合式指数条目中的制造来自树木的树木物体?
例如(随机编号为40-char SHA1-我刚刚组成):
$ echo First change > one.txt
$ git add one.txt
$ find .git/objects -type f
.git/objects/1f/755a7fffe4 //first index entry
$ echo Second change > one.txt
$ git add one.txt
$ find .git/objects -type f
.git/objects/2d/234asdf2 //second index entry
$ git commit -a -m "Initial commit"
$ git cat-file master^{tree}
100644 blob 2d234asdf2 one.txt //How did it know not to take 1f755??
Does it just look at the blob timestamps? Also - what happens to the first blob created - no one is referencing it. Does it just get destroyed or forgotten?