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

Matthias Sohn <matthias.sohn@xxxxxxxxxxxxxx> wrote:
> 2010/7/8 Christian Halstrick <christian.halstrick@xxxxxxxxx>
> >
> > 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

Yup.  I wrote that to help me debug the DirCache code. :-)

Also, in that same directory is a Bourne shell script called jgit
which can launch the JAR.  Its completely self-contained and is
meant to be copied into the user's $PATH... assuming you are on a
POSIX platform that can run such things.

-- 
Shawn.


Back to the top