Re: Newbie questions regarding jgit
- From
Jonas Fonseca <jonas.fonseca@gmail.com>
- Date
- Nov 12, 2008, 18:30 UTC
- Message-ID
- <2c6b72b30811121030k73ed42d4q5bea76e2f8198656@mail.gmail.com>
- In-Reply-To
- <491B18C4.2070000@wellfleetsoftware.com>
On Wed, Nov 12, 2008 at 18:56, Farrukh Najmi <farrukh@wellfleetsoftware.com> wrote:
> So far I have figured out how to get the treeWalk for the path filter as > shown below. > Now I am lost as to how to get the blob associated with the treeWalk. TIA > for your help.
For ideas take a look at how the NetBeans git plugin accomplishes some of the most common git tasks take a look at the GitCommand.java file. It contains code for adding and removing files, committing updates to the index. There is also some code trying to get "git-status" information, but it is not very smart or clean. Something equivalent to "git cat-file" (getting the blob data) can be seen at line 120:
- http://github.com/myabc/nbgit/tree/master/src/org/nbgit/util/GitCommand.java#L120
Sorry, I should have suggested this earlier.
-- Jonas Fonseca