What Obj-C/C libraries have you used for manipulating git repos in your Mac apps?

I am working on a Mac app that I would like to be able to clone and modify git repos. Using git directly is not an option as it is GPL and I'd like to sell my app commercially without opening the source. I've seen libgit2, which I could link, but I'm not sure how to do that properly, and it doesn't appear to implement any of the things necessary for pushing/pulling repos over the git protocol.

  • I have a feeling that stackoverflow.com would be more effective place to ask – Eugene Mayevski 'Allied Bits Jan 8 '11 at 20:48
  • What can your app do that isn't available with the existing offerings? – user1249 Jan 9 '11 at 20:00
  • @Thorbjørn - it's utilizing a git repo as a data store, it has nothing to do with "managing" a git repo like GitX (and others) do. – Andrew Theken Jan 17 '11 at 15:11

libgit2 is the only existing Git library that can be linked with a proprietary application without opening its source. Unfortunately, the Git network protocol hasn't been implemented yet -- but it is on the works and the development is moving quite fast.

I think your best bet would be waiting ~1 month until the network support is ready, or switching to Java and using JGit. There are no other options when developing with Obj-C.

  • Thanks, an alternative for mac development is to embed MacRuby and embed something like the Grit gem. – Andrew Theken Jan 17 '11 at 15:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.