GitRepository: reduce bit magic when working with JGit