From 899a3ccf6d2b6ce67e9f1135744709b2711a7e65 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Thu, 10 Nov 2011 13:34:59 +0100 Subject: [PATCH] Implement DirCacheEntry.toString() to ease debugging Change-Id: I9aa1b5817a18fb340411f47b25b6711d533590fd Signed-off-by: Matthias Sohn --- .../src/org/eclipse/jgit/dircache/DirCacheEntry.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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. *

-- 2.39.5