pygit2
pygit2 copied to clipboard
Expose GIT_DIRECTION constants; ability to remove refspecs
I've recently run into some trouble working with fetch/pull refspecs in pygit2 due to libgit2 features that haven't been exposed to python. The main issues I've encountered are:
- There's currently no way to remove fetch/pull refspecs
- The
GIT_DIRECTION_FETCH/GIT_DIRECTION_PUSHconstants aren't exposed to python (which are used by theRefspectype returned byget_refspec())
I found this old issue (https://github.com/libgit2/pygit2/issues/255) where @jdavid referenced these features, but it looks like those specific ones didn't make it in to pull request that was ultimately merged.