All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael J Gruber <git@drmicha.warpmail.net>
To: Dmitry Potapov <dpotapov@gmail.com>
Cc: Abhinav Goyal <honeykool23@gmail.com>, git@vger.kernel.org
Subject: Re: Regarding GIT API
Date: Tue, 15 Feb 2011 13:40:47 +0100	[thread overview]
Message-ID: <4D5A744F.5000208@drmicha.warpmail.net> (raw)
In-Reply-To: <AANLkTim4ucYtoyNEM2+=-dJTmpBtqy1zJOEX3k3Wk+XU@mail.gmail.com>

Dmitry Potapov venit, vidit, dixit 15.02.2011 12:49:
> On Tue, Feb 15, 2011 at 11:08:14AM +0000, Abhinav Goyal wrote:
>> I just need the git command
>> support for my C++ application. I have my own reason for not using command
>> prompt system call.
> 
> If you need full git functionality, currently the only proper way is to
> use git porcelain command, i.e. run commands using system() and parse
> their output. Git porcelain commands are designed to be used in this way,
> so their output is easy to parse. Also, their output should not change
> between different versions, in contrast to front-end git commands, which
> provide more human oriented output.

You mean "plumbing" for the commands with robust interface.

The front-end commands are "porcelain": they may break when used for
heavy (scripting) work...

> 
> NOTE: There are libraries for some other languages such as Java and Ruby
> (jGit and Grit correspondingly), but they contain re-implementation of
> most git functionality. No one has bothered to write anything like that
> in C. So, libgit2 provides only low-level and very limited functionality.
> 
> More information about git interfaces to different languages, you can
> find here:
> 
> https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools#Interfaces_to_other_programming_languages
> 
> 
> Dmitry

  reply	other threads:[~2011-02-15 12:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-15 11:08 Regarding GIT API Abhinav Goyal
2011-02-15 11:21 ` Erik Faye-Lund
2011-02-15 11:22 ` Marc Weber
2011-02-15 11:49 ` Dmitry Potapov
2011-02-15 12:40   ` Michael J Gruber [this message]
2011-02-15 17:09     ` Dmitry Potapov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D5A744F.5000208@drmicha.warpmail.net \
    --to=git@drmicha.warpmail.net \
    --cc=dpotapov@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=honeykool23@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.