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?

  • Creating a branch for release snapshots?
  • Keeping Drupal updated with Git
  • How to sync a subdirectory of a git repo?
  • Get collections of diffs
  • Git rebase error: This application will not run on your computer
  • How to create a git clone for viewing only
  • How to apply unmerged upstream pull requests from other forks into my fork?
  • Git: simplest way of squashing commits on master
  • Is there a way to get the number of additional commits in git without awk?
  • Syncing forked repo with upstream/master or upstream/develop?
  • git-svn crashing on big repo migration
  • How to check what I'm going to commit?
  • One Solution collect form web for “Git porcelain commands via pygit2?”

    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.

    Git Baby is a git and github fan, let's start git clone.