diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2011-11-10 13:34:59 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2011-11-10 13:34:59 +0100 |
commit | 899a3ccf6d2b6ce67e9f1135744709b2711a7e65 (patch) | |
tree | a160b9f2498595ca5c8b111fd2771381e413d875 | |
parent | c0392381ee915c8ddd08a5fe8b94548fd86b8fcd (diff) | |
download | jgit-899a3ccf6d2b6ce67e9f1135744709b2711a7e65.tar.gz jgit-899a3ccf6d2b6ce67e9f1135744709b2711a7e65.zip |
Implement DirCacheEntry.toString() to ease debugging
Change-Id: I9aa1b5817a18fb340411f47b25b6711d533590fd
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-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, |