diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2011-03-03 10:56:38 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2011-03-03 10:56:38 +0100 |
commit | 3de0df93d4288e3d466ac2ab873fa0589d279d0d (patch) | |
tree | e6a3a4774b894c2a12646d1f17fb5bb3e5a75653 /org.eclipse.jgit.pgm | |
parent | a468cb57c2f2fbd8da163f002b505255ea768244 (diff) | |
download | jgit-3de0df93d4288e3d466ac2ab873fa0589d279d0d.tar.gz jgit-3de0df93d4288e3d466ac2ab873fa0589d279d0d.zip |
Enhance debug-show-dir-cache command to show stage
Change-Id: I6fb17ec7f04f8bfaf1253b2ff08200ef9fc51898
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowDirCache.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowDirCache.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowDirCache.java index a94d37ff87..bceb7f46cb 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowDirCache.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowDirCache.java @@ -2,6 +2,7 @@ * Copyright (C) 2008, Google Inc. * Copyright (C) 2008, Jonas Fonseca <fonseca@diku.dk> * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> + * Copyright (C) 2011, Matthias Sohn <matthias.sohn@sap.com> * and other copyright owners as documented in the project's IP log. * * This program and the accompanying materials are made available @@ -65,6 +66,7 @@ class ShowDirCache extends TextBuiltin { final FileMode mode = FileMode.fromBits(ent.getRawMode()); final int len = ent.getLength(); final Date mtime = new Date(ent.getLastModified()); + final int stage = ent.getStage(); out.print(mode); out.format(" %6d", len); @@ -72,6 +74,8 @@ class ShowDirCache extends TextBuiltin { out.print(fmt.format(mtime)); out.print(' '); out.print(ent.getObjectId().name()); + out.print(' '); + out.print(stage); out.print('\t'); out.print(ent.getPathString()); out.println(); |