summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2011-11-10 13:34:59 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2011-11-10 13:34:59 +0100
commit899a3ccf6d2b6ce67e9f1135744709b2711a7e65 (patch)
treea160b9f2498595ca5c8b111fd2771381e413d875
parentc0392381ee915c8ddd08a5fe8b94548fd86b8fcd (diff)
downloadjgit-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.java10
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,