tags:

views:

225

answers:

3

Curious if there any API wrappers for Git and Subversion for Java?

I want to be able to pullup the changesets and souce code (and diffs) from Subversion and Git repos.

Is this possible? Any pre-built APIs?

+2  A: 

jGit is an implementation of git in Java.

SvnClientAdapter will connect to SVN using various different methods.

mopoke
I need to hook into GIT, not re-implement GIT in java? or is that a API wrapper?
mrblah
A: 

Check out svnkit for a java-based subversion implemention. There are also subversion bindings to java distributed with subversion at http://subversion.tigris.org/

jgit has a java implementation for git.

Andrew
+3  A: 

A quick google search found some results, although I can't say I've used them so their usefulness is unknown

  • JavaGit: "JavaGit is a Java API that provides access to git repositories. Our goal is to provide a library with an easy-to-use API that is intuitive for developers new to git and developers who are veteran git users." According to their FAQ it just uses the command line git command behind the scenes
  • JGit: An implementation of git in Java
  • svnkit: Implementation of SVN in Java.
ghills