Browse Source

Add toString to Git with repository path

Useful for debugging.

Change-Id: I78b92ccbcc099370fc99a1d2fa2cf60d5f5892e6
Signed-off-by: Robin Stocker <robin@nibor.org>
stable-3.5
Robin Stocker 10 years ago
parent
commit
4bdd0037aa
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java

4
org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java

@ -701,4 +701,8 @@ public class Git {
return repo; return repo;
} }
@Override
public String toString() {
return "Git[" + repo + "]"; //$NON-NLS-1$//$NON-NLS-2$
}
} }

Loading…
Cancel
Save