开发者

is there an API for GIT (C++ or other languages)

开发者 https://www.devze.com 2023-04-09 11:47 出处:网络
A company asked me to program a GIT wrapper for them. The people there have absolute no versioning systems experience, but it will be incorporat开发者_运维问答ed in their daily routine eventually (t

A company asked me to program a GIT wrapper for them.

The people there have absolute no versioning systems experience, but it will be incorporat开发者_运维问答ed in their daily routine eventually (through my program).

I'm planning on using VC++ to create a tiny windows applet that will help ppl in this process. Any thoughts on that?

What about a Deamon process checking if people want to commit/push their files?


For almost (but not all!) use cases, libgit2 is the easiest way to interact with Git repositories via code.


Git already has two layers: The plumbing (which you may be interested in) on top of which is built the primary porcelain which provides the user interface. If you want to implement something like git-commit but with slightly different semantics all of the underlying programs like git-write-tree and git-rev-parse are there for you to build on.

See also What does the term "porcelain" mean in Git?


There's already TortoiseGit, among other "friendly" interfaces. Don't re-invent the wheel, start by researching what's already available.


In order to easier the search for documentation hereafter the link to the official. It's about the plumbing and porcelain: https://git-scm.com/book/en/v2/Git-Internals-Plumbing-and-Porcelain

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号