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 fileI 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