]> source.dussan.org Git - jgit.git/commitdiff
Add toString to Git with repository path 03/31803/1
authorRobin Stocker <robin@nibor.org>
Sun, 17 Aug 2014 07:48:05 +0000 (17:48 +1000)
committerRobin Stocker <robin@nibor.org>
Sun, 17 Aug 2014 07:48:05 +0000 (17:48 +1000)
Useful for debugging.

Change-Id: I78b92ccbcc099370fc99a1d2fa2cf60d5f5892e6
Signed-off-by: Robin Stocker <robin@nibor.org>
org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java

index 983b6b552ec69eedbb3fc30475802183a82bbdad..67e9a2576b05623616fa1d58d19411cc495dcee5 100644 (file)
@@ -701,4 +701,8 @@ public class Git {
                return repo;
        }
 
+       @Override
+       public String toString() {
+               return "Git[" + repo + "]"; //$NON-NLS-1$//$NON-NLS-2$
+       }
 }