]> source.dussan.org Git - jgit.git/commit
Format merge commit messages like C Git 10/1810/3
authorRobin Stocker <robin@nibor.org>
Wed, 3 Nov 2010 20:36:29 +0000 (21:36 +0100)
committerRobin Stocker <robin@nibor.org>
Sat, 6 Nov 2010 12:48:11 +0000 (13:48 +0100)
commit6290ca3a638d1ac999da6c11628f904b31972067
treee83a2781cb54a7a00a9817716b4eea1071e9307b
parent2fb0f5cfc067cb20f178cf4db7395b394b48783b
Format merge commit messages like C Git

The automatically generated commit message of a merge should have the
same structure as in C Git for consistency (as per git fmt-merge-msg).

Before this change:

  merging refs/heads/a into refs/heads/master

After:

  Merge branch 'a'

Plurals, "into" and joining by "," and "and" also work.

Change-Id: I9658ce2817adc90d2df1060e8ac508d7bd0571cb
org.eclipse.jgit.test/tst/org/eclipse/jgit/merge/MergeMessageFormatterTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeMessageFormatter.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/util/StringUtils.java