encoding of commits for git