Re: Newbie questions regarding jgit
- From
Farrukh Najmi <farrukh@wellfleetsoftware.com>
- Date
- Nov 11, 2008, 21:12 UTC
- Message-ID
- <4919F55A.3050008@wellfleetsoftware.com>
- In-Reply-To
- <4919EECB.7070408@wellfleetsoftware.com>
I should clarify that I am not using eclipse nor am I using any GUI. My objective is to have Java API access to git from within a servlet using jgit. At present, all I have to go on is javadoc and its not clear where to begin if I simply wish to create, read and update files in a git repo from within the servlet java code.
TIA for your help.
Farrukh Najmi wrote:
Show 37 quoted lines
> > 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