Committing a tree should be constant in time, since it only needs to create a new commit object (git write-tree
) and update the HEAD
ref.
I did benchmarks of different SCMs in the past and git commit
was indeed not affected by tree size, repository size, history length, etc.