Ver código fonte

Implement DirCacheEntry.toString() to ease debugging

Change-Id: I9aa1b5817a18fb340411f47b25b6711d533590fd
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v1.2.0.201112221803-r
Matthias Sohn 12 anos atrás
pai
commit
899a3ccf6d

+ 10
- 0
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java Ver arquivo

@@ -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>

Carregando…
Cancelar
Salvar