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

JGit vs. Git

From
VMVagmi Mudumbai <vagmi.mudumbai@gmail.com>
Date
Jan 6, 2009, 06:50 UTC
Message-ID
<a55cfe9d0901052250k2be203dfvb0b437a523f2cecc@mail.gmail.com>
In-Reply-To
<a55cfe9d0901052249v1461c70cp1d89e184cfc05eb9@mail.gmail.com>
Hi,
I am a git and a jgit noob. Be gentle. :-)
1) Is JGit a drop in replacement of Git? In sense, if I were to pack
in an SCM with my app, Can I pack jgit instead of C Git?
2) I noticed that there are no 'add' and 'commit' commands (at least
from the source) in the org.spearce.git.pgm project. I am looking at
the repo.or.cz/egit.git repo. I had a brief look at the
lib/GitIndex.java and lib/Repository.java. GitIndex has the add
methods to add files/entries to the index. I am still stumped on how
commits can be done with JGit. Any help is hugely appreciated.

I am working on Windows with msysGit behind a HTTP Proxy. (Life cant get worse, I guess.) . I planned on using grit via JRuby but grit uses fork which is not available on funny platforms like windows. And JRuby guys do not have any plan on supporting fork even on platforms on which for is supported. If JGit is a pure Java based implementation of Git with more or less the same functionality, then my work becomes a lot easier.

Regards, Vagmi

Next: Robin Rosenberg
Message 1 of 6 in “JGit vs. Git”
  1. Vagmi MudumbaiJan 6, 2009
  2. Robin RosenbergJan 6, 2009
  3. Stephen BannaschJan 6, 2009
  4. Shawn O. PearceJan 6, 2009
  5. Johannes SchindelinJan 6, 2009
  6. Vagmi MudumbaiJan 7, 2009

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.