Browse Source

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

tags/v1.2.0.201112221803-r
Christian Halstrick 12 years ago
parent
commit
e7ec5e1473
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java

+ 10
- 0
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java View File

@@ -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