Suppose you have new git repository and add a file README.MD and write
foo
to the file and commit this file for the first time. From what i understand is, git creates three new objects when committing: a blob, a tree and a commit. The commit object references a tree which in turn references trees or blobs.
Suppose you do a second commit, adding bar to the README.MD, so that the file looks like this:
foo
bar
and commit this file, a new blob is created for that commit. Does that new blob hold
foo
bar
or only the last change:
bar
?