From: Matthias Sohn Date: Thu, 10 Nov 2011 12:34:59 +0000 (+0100) Subject: Implement DirCacheEntry.toString() to ease debugging X-Git-Tag: v1.2.0.201112221803-r~37^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F96%2F4596%2F1;p=jgit.git Implement DirCacheEntry.toString() to ease debugging Change-Id: I9aa1b5817a18fb340411f47b25b6711d533590fd Signed-off-by: Matthias Sohn --- 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 @@ -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. *