aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org
diff options
context:
space:
mode:
authorChristian Halstrick <christian.halstrick@sap.com>2012-10-22 07:11:01 -0400
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2012-10-22 07:11:01 -0400
commitb7d2c9a4465c1f43b142d5693f008604f422410f (patch)
tree122a74c88fdd184161a1bf3edbf9eb2f0a7c0c87 /org.eclipse.jgit/src/org
parentad52ec5207f5c7ee1736e3a77bc45ad61baf3b71 (diff)
parentf54b74225c54c3935ad19ba84112882808554752 (diff)
downloadjgit-b7d2c9a4465c1f43b142d5693f008604f422410f.tar.gz
jgit-b7d2c9a4465c1f43b142d5693f008604f422410f.zip
Merge "AbstractTreeIterator: Add toString with entry path"
Diffstat (limited to 'org.eclipse.jgit/src/org')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/treewalk/AbstractTreeIterator.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/AbstractTreeIterator.java b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/AbstractTreeIterator.java
index 752f20bf38..0b8df130f8 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/AbstractTreeIterator.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/AbstractTreeIterator.java
@@ -671,4 +671,9 @@ public abstract class AbstractTreeIterator {
public void getName(byte[] buffer, int offset) {
System.arraycopy(path, pathOffset, buffer, offset, pathLen - pathOffset);
}
+
+ @Override
+ public String toString() {
+ return getClass().getSimpleName() + "[" + getEntryPathString() + "]";
+ }
}