Bug in DiffPosPre fixed, changed BuildCommitTree to use git hash-object