Browse Source

AbstractTreeIterator: Add toString with entry path

Helps when debugging tree walking code.

Change-Id: I7ba3846a028a1538787a7d4fbf50f7c487cae6c7
stable-2.2
Robin Stocker 12 years ago
parent
commit
f54b74225c
  1. 5
      org.eclipse.jgit/src/org/eclipse/jgit/treewalk/AbstractTreeIterator.java

5
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() + "]";
}
}

Loading…
Cancel
Save