]> source.dussan.org Git - jgit.git/commit
blame: Automatically increase commit abbreviation length 39/25239/3
authorShawn Pearce <spearce@spearce.org>
Thu, 17 Apr 2014 21:19:23 +0000 (14:19 -0700)
committerShawn Pearce <spearce@spearce.org>
Thu, 17 Apr 2014 22:51:50 +0000 (15:51 -0700)
commit5a4e34009be6ab108d3165a436da38cb23fb8a0f
treef87a9279b783ac0ac70b822d7b0c7c312bd61f33
parent551f3a0fa5460513008e26bd2bb1ac73c185f5f5
blame: Automatically increase commit abbreviation length

Ensure commit object names are unique by extending the default
abbreviation as long as necessary. This allows `jgit blame` to
more closely match the formatted output of `git blame` on large
histories like Gerrit Code Review's ReceiveCommits.java file.

Change-Id: I5f7c4855769ee9dcba973389df9e109005dcdb5b
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Blame.java
org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java