]> source.dussan.org Git - jgit.git/commitdiff
Adapt merge message to C Git for remote-tracking branch 71/4671/1
authorRobin Stocker <robin@nibor.org>
Wed, 23 Nov 2011 16:03:21 +0000 (17:03 +0100)
committerRobin Stocker <robin@nibor.org>
Wed, 23 Nov 2011 16:03:21 +0000 (17:03 +0100)
Commit 13931236b9ee2895a98ffdbdacbd0f895956d8a8 in C Git (2011-11-02)
changed the message format:

-Merge remote branch 'origin/foo'
+Merge remote-tracking branch 'origin/foo'

This change does the same in EGit to be consistent.

Change-Id: I7d9c5afa95771dbfe6079b5f89a10b248fee0172
Signed-off-by: Robin Stocker <robin@nibor.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/merge/MergeMessageFormatterTest.java
org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeMessageFormatter.java

index 4ccc0f9bed10914da369083e277f6f38778dcdff..73fb838f0bc186c47f94ce9ee185fd189cdaf6ca 100644 (file)
@@ -114,7 +114,7 @@ public class MergeMessageFormatterTest extends SampleDataRepositoryTestCase {
                Ref remoteA = db.getRef("refs/remotes/origin/remote-a");
                Ref master = db.getRef("refs/heads/master");
                String message = formatter.format(Arrays.asList(remoteA), master);
-               assertEquals("Merge remote branch 'origin/remote-a'", message);
+               assertEquals("Merge remote-tracking branch 'origin/remote-a'", message);
        }
 
        @Test
@@ -123,7 +123,7 @@ public class MergeMessageFormatterTest extends SampleDataRepositoryTestCase {
                Ref remoteA = db.getRef("refs/remotes/origin/remote-a");
                Ref master = db.getRef("refs/heads/master");
                String message = formatter.format(Arrays.asList(c, remoteA), master);
-               assertEquals("Merge branch 'c', remote branch 'origin/remote-a'",
+               assertEquals("Merge branch 'c', remote-tracking branch 'origin/remote-a'",
                                message);
        }
 
index 11f3b7a3fd91c2b1ef68717abcd8dba76d08d231..1a26ecfe1f38c88065fe8580e91461032a934aa3 100644 (file)
@@ -99,8 +99,8 @@ public class MergeMessageFormatter {
                        listings.add(joinNames(branches, "branch", "branches"));
 
                if (!remoteBranches.isEmpty())
-                       listings.add(joinNames(remoteBranches, "remote branch",
-                                       "remote branches"));
+                       listings.add(joinNames(remoteBranches, "remote-tracking branch",
+                                       "remote-tracking branches"));
 
                if (!tags.isEmpty())
                        listings.add(joinNames(tags, "tag", "tags"));