diff options
author | Christian Halstrick <christian.halstrick@sap.com> | 2011-11-11 03:21:29 -0500 |
---|---|---|
committer | Code Review <codereview-daemon@eclipse.org> | 2011-11-11 03:21:29 -0500 |
commit | e7ec5e147357f30cfde2e6921bd1bb5913b76e3b (patch) | |
tree | dfd4f708f23a9acc5e114588a8a3ec04e73e96bb | |
parent | ebd0a3af54abfd628c90dccf20d0cfdd9fba8b03 (diff) | |
parent | 899a3ccf6d2b6ce67e9f1135744709b2711a7e65 (diff) | |
download | jgit-e7ec5e147357f30cfde2e6921bd1bb5913b76e3b.tar.gz jgit-e7ec5e147357f30cfde2e6921bd1bb5913b76e3b.zip |
Merge "Implement DirCacheEntry.toString() to ease debugging"
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java index 2ea79ad6e6..8a119b6bb4 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java @@ -620,6 +620,16 @@ public class DirCacheEntry { } /** + * 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> * This method copies everything except the path from one entry to another, |