diff options
author | Robin Stocker <robin@nibor.org> | 2014-08-17 17:48:05 +1000 |
---|---|---|
committer | Robin Stocker <robin@nibor.org> | 2014-08-17 17:48:05 +1000 |
commit | 4bdd0037aa3ca8ca7c3996510e9ea292526c6a29 (patch) | |
tree | 6dbc53f253f6d60f73d0e3d35a5c5fd0d299cc34 | |
parent | 9bb891e44d23f87e3a97710ffdf877c2ec10b8ee (diff) | |
download | jgit-4bdd0037aa3ca8ca7c3996510e9ea292526c6a29.tar.gz jgit-4bdd0037aa3ca8ca7c3996510e9ea292526c6a29.zip |
Add toString to Git with repository path
Useful for debugging.
Change-Id: I78b92ccbcc099370fc99a1d2fa2cf60d5f5892e6
Signed-off-by: Robin Stocker <robin@nibor.org>
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java index 983b6b552e..67e9a2576b 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java @@ -701,4 +701,8 @@ public class Git { return repo; } + @Override + public String toString() { + return "Git[" + repo + "]"; //$NON-NLS-1$//$NON-NLS-2$ + } } |