Adding support for git remote set-url/get-url API to Remote by guyzmo · Pull Request #446 · gitpython-developers/GitPython (original) (raw)
So, I've squashed my commit with a new one, featuring a few changes:
- The
set_url
method is a direct wrapper forgit remote set-url
; - the
urls
property is providing an iterator over the remote's URLs (I followed how you namedrefs
)
Then I've added a couple of convenience methods, to avoid adding awkward arguments to control set_url
:
- the
add_url
method is there so you can add an URL to a remote - and
delete_url
method is to delete one.
Finally, I've added a test covering all the new code, with a couple of edge cases, and wrote pydoc for those functions. I hope it's how you like it, mates!