Browse Source

Merge "Implement DirCacheEntry.toString() to ease debugging"

stable-1.2
Christian Halstrick 13 years ago committed by Code Review
parent
commit
e7ec5e1473
  1. 10
      org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java

10
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java vendored

@ -619,6 +619,16 @@ public class DirCacheEntry {
return toString(path);
}
/**
* Use for debugging only !
*/
@Override
public String toString() {
return getFileMode() + " " + getLength() + " " + getLastModified()
+ " " + getObjectId() + " " + getStage() + " "
+ getPathString() + "\n";
}
/**
* Copy the ObjectId and other meta fields from an existing entry.
* <p>

Loading…
Cancel
Save