I am a new user of git. I am working to extend git functionality in eclipse on a local repository on my own system using java. I have to develop commit functionality of git using java. Can you please help exactly which libraries I should import for committing and version control? Is there any other library that I need to install in eclipse for the same? If it is, pl make me available a link for that.
-
What does this have to do with Swing?– Andrew ThompsonCommented Dec 16, 2012 at 9:02
-
1Eclipse already has git support, which is opensource, so you could look into extending the Egit plugin– Mark RotteveelCommented Dec 16, 2012 at 9:03
-
@MarkRotteveel Yes I know that Eclipse has git support but the thing is that I have to commit a random folder from my system to my local git repository. I need to code for the same. I had already gone though the Egit plugin link. Pl help.– ManojCommented Dec 16, 2012 at 9:59
Add a comment
|
1 Answer
If you want to implement Git functionalities in Java a good library is JGIT.
JGit is an EDL (new-style BSD) licensed, lightweight, pure Java library implementing the Git version control system:
And again:
JGit has very few dependencies, making it suitable for embedding in any Java application, whether or not the application is taking advantage of other Eclipse or OSGi technologies