Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Inspect the index with JGit

Hi,

just a tip for all of us who want to see what exactly is stored in the
index. Native git's 'git ls-files -v' does the job but jgit's
debug-show-dir-cache prints out even more info (mode, length,
timestamp, id. path). If you have build jgit with maven you should
have a jgit-cli.jar somewhere and starting jgit is as easy as this:

$ java -jar jgit-cli.jar --git-dir /c/git/jgit/.git debug-show-dircache
100644    871 20100706,131532.000
dc701694e405702940dc97caada20a3e5d64bbba      .eclipse_iplog
100644     17 20100219,165448.000
f57840b7eec86b91b135afc40f20d950c5d86988      .gitattributes
100644   1716 20100706,131532.000
1b85c64665f461a1ac948345c5f8034b751eda93      LICENSE
100644   3676 20100219,165448.000
a39adb093fa9db109e609459f02f87a7506abc84      README
100644   3904 20100219,165448.000
3a0233f86e390d78d33c6d878effd0be12cb033f      SUBMITTING_PATCHES
100644    416 20100706,131532.000
31db9a911744ffc6c85220139e4df443f4322dee
org.eclipse.jgit.console/.classpath
100644     13 20100219,165448.000
934e0e06ffa0a2aeedbe1341d321549336719cc0
org.eclipse.jgit.console/.gitignore
100644    847 20100219,165448.000
4f272a7ccc2f226e36fc1be0d698387a1c688294
org.eclipse.jgit.console/.project
100644     86 20100219,165448.000
190e5c57d0e21a56243ea709e1bc0158768beb83
org.eclipse.jgit.console/.settings/org.eclipse.core.resources.prefs
...

Ciao
  Chris


Back to the top