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

Newbie questions regarding jgit

From
Farrukh Najmi <farrukh@wellfleetsoftware.com>
Date
Nov 11, 2008, 20:44 UTC
Message-ID
<4919EECB.7070408@wellfleetsoftware.com>
Hi all,
I am git newbie and looking to use jgit in a servlet endpoint.

Where can I find a public maven repo for gjit? It seems there is one somewhere because of the following file in src tree:

jgit-maven/jgit/pom.xml

For now I have built the jar using /make_jgit.sh and installed the pom manually using m

mvn install:install-file -DpomFile=jgit-maven/jgit/pom.xml -Dfile=jgit.jar
I have added the following dependency to my maven project's pom.xml:
   <dependency>
     <groupId>org.spearce</groupId>
     <artifactId>jgit</artifactId>
     <version>0.4-SNAPSHOT</version>
   </dependency>

Now I am wondering where to begin to learn how to do the equivalent of the following commands via the gjit Java API:

    * git add /file/
    * git rm /file/
    * git mv /file
    * Whatever is the git way to get a specific version of a file

I am hoping that there aremore docs, samples, tutorials etc. somewhere that I am missing. Thanks for any help you can provide. Some pointers or code fragments would be terrific.

-- 
Regards,
Farrukh Najmi

Web: http://www.wellfleetsoftware.com
Next: Farrukh Najmi
Message 1 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.