Expose GIT_DIRECTION constants; ability to remove refspecs
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 1.7k
- Forks
- 408
- Ø Merge
- 2 T. 57 Min.
- Gemergte PRs (30 T.)
- 7
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Typ Refspec und den Einstiegspunkt get_refspec() in den Python-Bindings nachzuverfolgen, und vergleiche anschließend die verfügbaren libgit2-Refspec-Operationen. Die Arbeit ist abgeschlossen, wenn GIT_DIRECTION_FETCH und GIT_DIRECTION_PUSH bereitgestellt sind und Fetch-/Pull-Refspecs entfernt werden können, mit Abdeckung für beide Verhaltensweisen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- git, python
- Bereich
- api, devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100