Next | 18 |
Let's modify one file and record the resulting tree
Original tree:
100644 blob 3a6f56f8a15f5f96411c267a7428fcfeff6f9bcd foo 040000 tree e79566ab21a03dfac3fb4b479b24e3d9ff379d29 doc 100644 blob 22aa6ff4684a3080367c7bb5ec366fb3bd0364c6 bar
New tree with modified foo:
100644 blob 6c88cdb22deeeb871ad083cdbad17d515acd9181 foo 040000 tree e79566ab21a03dfac3fb4b479b24e3d9ff379d29 doc 100644 blob 22aa6ff4684a3080367c7bb5ec366fb3bd0364c6 bar
Since the resulting tree is different, it will have a different hash
So it's a different object
Next | Copyright © 2010 M. J. Dominus |