Skip to main content

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

2010/7/8 Christian Halstrick <christian.halstrick@xxxxxxxxx>
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

I put that into the JGit FAQ so that others can find it more easily : http://wiki.eclipse.org/JGit/FAQ
 
--
Matthias

Back to the top