简体   繁体   中英

Git porcelain commands via pygit2?

Pygit2 is a set of Python bindings to the libgit2 shared library, which implements the Git core methods. Unfortunately, it only seems to provide an API towards plumbing commands.

Is there any python library built on the top of pygit2 which provides an implementation of the most common git porcelain commands?

The plumbing commands are those which are only expected to interact with a user and as such their output is subject to change at any time and have a granularity which as a rule is not particularly useful for a computer programme.

If you're not interested in the data structures from libgit2, but rather want to run pluming commands for scripting, you might want to take a look at GitPython which wraps git's own commands behind a python API.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM