summaryrefslogtreecommitdiff
path: root/git/test/test_docs.py
diff options
context:
space:
mode:
authorGuyzmo <guyzmo+github@m0g.net>2016-05-26 20:43:28 +0200
committerGuyzmo <guyzmo+github@m0g.net>2016-06-08 19:34:29 +0200
commitb366d3fabd79e921e30b44448cb357a05730c42f (patch)
tree6d6ab0a14a6e89b2cd52fc993663f2d6b8a274ed /git/test/test_docs.py
parent902679c47c3d1238833ac9c9fdbc7c0ddbedf509 (diff)
downloadgitpython-b366d3fabd79e921e30b44448cb357a05730c42f.tar.gz
Adding support for git remote set-url/get-url API to Remote
Both commands enable handling of a little known feature of git, which is to support multiple URL for one remote. You can add multiple url using the `set_url` subcommand of `git remote`. As listing them is also handy, there's a nice method to do it, using `get_url`. * adding set_url method that maps to the git remote set-url command¶ * can be used to set an URL, or replace an URL with optional positional arg¶ * can be used to add, delete URL with kwargs (matching set-url options)¶ * adding add_url, delete_url methods that wraps around set_url for conveniency¶ * adding urls property that yields an iterator over the setup urls for a remote¶ * adding a test suite that checks all use case scenarii of this added API.¶ Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
Diffstat (limited to 'git/test/test_docs.py')
0 files changed, 0 insertions, 0 deletions