]> source.dussan.org Git - jgit.git/commitdiff
Implement DirCacheEntry.toString() to ease debugging 96/4596/1
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 10 Nov 2011 12:34:59 +0000 (13:34 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 10 Nov 2011 12:34:59 +0000 (13:34 +0100)
Change-Id: I9aa1b5817a18fb340411f47b25b6711d533590fd
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java

index 2ea79ad6e60efc61cbfc9ade7962a9a73c18ea40..8a119b6bb4e7d8e1e5cfd3c20912020f117c1aec 100644 (file)
@@ -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.
         * <p>