Browse Source

Enhance debug-show-dir-cache command to show stage

Change-Id: I6fb17ec7f04f8bfaf1253b2ff08200ef9fc51898
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-0.12
Matthias Sohn 14 years ago
parent
commit
3de0df93d4
  1. 4
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowDirCache.java

4
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();

Loading…
Cancel
Save