* APIs for automatic patch generation
@ 2010-02-20 19:40 Markus Elfring
2010-02-23 17:04 ` Markus Elfring
0 siblings, 1 reply; 6+ messages in thread
From: Markus Elfring @ 2010-02-20 19:40 UTC (permalink / raw)
To: git
Hello,
I would like to generate patches in the Git format for some other
software automatically. Which application programming interfaces do you
recommend for this purpose if I am going to integrate this into a small
C++ class library?
http://www.kernel.org/pub/software/scm/git/docs/v1.7.0/technical/api-index.html
http://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools
Specific use cases:
- Which functions or commands should I call to retrieve the required
informations for a line like "index 8d16832..358c98b 100644"?
- Can any functions help to construct proper range specifications for
difference hunks?
Regards,
Markus
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: APIs for automatic patch generation
2010-02-20 19:40 APIs for automatic patch generation Markus Elfring
@ 2010-02-23 17:04 ` Markus Elfring
2010-02-23 17:07 ` Sverre Rabbelier
2010-12-13 16:00 ` Markus Elfring
0 siblings, 2 replies; 6+ messages in thread
From: Markus Elfring @ 2010-02-23 17:04 UTC (permalink / raw)
To: git
Hello,
The commands "git diff" and "git format-patch" contain functionality that I
would like to reuse for my little application in a C++ class library.
Which functions exist in a C API that can provide the following data?
- a line like "index 8d16832..358c98b 100644"
- range specifications for difference hunks
- mail construction
Regards,
Markus
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: APIs for automatic patch generation
2010-02-23 17:04 ` Markus Elfring
@ 2010-02-23 17:07 ` Sverre Rabbelier
2010-02-23 17:23 ` Markus Elfring
2010-12-13 16:00 ` Markus Elfring
1 sibling, 1 reply; 6+ messages in thread
From: Sverre Rabbelier @ 2010-02-23 17:07 UTC (permalink / raw)
To: Markus Elfring; +Cc: git
Heya,
On Tue, Feb 23, 2010 at 18:04, Markus Elfring <Markus.Elfring@web.de> wrote:
> The commands "git diff" and "git format-patch" contain functionality that I
> would like to reuse for my little application in a C++ class library.
Until libgit2 is done, just shell out and call 'git format-patch'.
[0] http://git.wiki.kernel.org/index.php/SoC2010Ideas#libgit2
--
Cheers,
Sverre Rabbelier
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: APIs for automatic patch generation
2010-02-23 17:07 ` Sverre Rabbelier
@ 2010-02-23 17:23 ` Markus Elfring
2010-02-23 18:07 ` Sverre Rabbelier
0 siblings, 1 reply; 6+ messages in thread
From: Markus Elfring @ 2010-02-23 17:23 UTC (permalink / raw)
To: Sverre Rabbelier; +Cc: git
> Until libgit2 is done, just shell out and call 'git format-patch'.
Thanks for the link.
I do not need the whole functionality of these commands for my library. I am
looking if the mentioned data items can also be really retrieved by command line
parameters.
Regards,
Markus
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: APIs for automatic patch generation
2010-02-23 17:23 ` Markus Elfring
@ 2010-02-23 18:07 ` Sverre Rabbelier
0 siblings, 0 replies; 6+ messages in thread
From: Sverre Rabbelier @ 2010-02-23 18:07 UTC (permalink / raw)
To: Markus Elfring; +Cc: git
Heya,
On Tue, Feb 23, 2010 at 18:23, Markus Elfring <Markus.Elfring@web.de> wrote:
> I do not need the whole functionality of these commands for my library.
My answer still holds.
--
Cheers,
Sverre Rabbelier
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: APIs for automatic patch generation
2010-02-23 17:04 ` Markus Elfring
2010-02-23 17:07 ` Sverre Rabbelier
@ 2010-12-13 16:00 ` Markus Elfring
1 sibling, 0 replies; 6+ messages in thread
From: Markus Elfring @ 2010-12-13 16:00 UTC (permalink / raw)
To: git, libgit2
> The commands "git diff" and "git format-patch" contain functionality that I
> would like to reuse for my little application in a C++ class library.
Which functions exist in the recently published C API
(http://libgit2.github.com/) that can provide the following data?
* a line like "index 8d16832..358c98b 100644"
* range specifications for difference hunks
* mail construction
Regards,
Markus
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-12-13 16:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-20 19:40 APIs for automatic patch generation Markus Elfring
2010-02-23 17:04 ` Markus Elfring
2010-02-23 17:07 ` Sverre Rabbelier
2010-02-23 17:23 ` Markus Elfring
2010-02-23 18:07 ` Sverre Rabbelier
2010-12-13 16:00 ` Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).