https://github.com/gitster/git
But where are all the other tests? E.g. merging, diffing, etc are all units and thus easy to test, but I couldn't find some.
Are there any tests? How is the git community guarantee that all still works, if they rewrite parts or make substantial changes?