git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Farrukh NajmiNext: Shawn O. Pearce
Message 15 of 16 in “Newbie questions regarding jgit”
  1. Farrukh NajmiNov 11, 2008
  2. Farrukh NajmiNov 11, 2008
  3. Jonas FonsecaNov 11, 2008
  4. Shawn O. PearceNov 11, 2008
  5. Jonas FonsecaNov 11, 2008
  6. Shawn O. PearceNov 11, 2008
  7. Add maven distribution management info for the new snapshot repositoryJonas Fonseca, Nov 11, 2008
  8. Shawn O. PearceNov 12, 2008
  9. Shawn O. PearceNov 12, 2008
  10. Imran M YousufNov 12, 2008
  11. Farrukh NajmiNov 12, 2008
  12. Farrukh NajmiNov 12, 2008
  13. Farrukh NajmiNov 12, 2008
  14. Farrukh NajmiNov 12, 2008
  15. Jonas FonsecaNov 12, 2008
  16. Shawn O. PearceNov 12, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.