GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — Adding support for git remote set-url/get-url API to Remote by guyzmo · Pull Request #446 · gitpython-developers/GitPython Conversation
Contributor
Both commands enable handling of a little known feature
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
guyzmo
force-pushed
the
updating_remote_url_handling
branch
from
546dfeb to
ba01785
Compare
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Before I forget, could you also look at how existing methods are documented and match the documentation style ? This would include documenting all parameters, for example. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I might, but sadly I'm now in the train, going away for four days, during which I'm on a crappy tablet on which I cannot work. Though, I very much would like to see this new methods included in the next patchset so I can remove the monkey patching from my own codebase as well :-) cf https://github.com/guyzmo/git-repo/blob/master/git_repo/services/service.py#L25-43 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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 <[email protected]>
ba01785 to
b366d3f
Compare
|
So, I've squashed my commit with a new one, featuring a few changes:
Then I've added a couple of convenience methods, to avoid adding awkward arguments to control
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! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…t remote get-url` `get-url` is a new API that is not widely available yet (introduced in git 2.7.0), and provokes failure on travis. Signed-off-by: Guyzmo <[email protected]>
c780aff to
3f4b410
Compare
|
I rolled back the The |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
can you ping me when you think you'll be able to merge, and publish on pypi¸ and what version that will be? So I can update my setup.py accordingly ☺ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
If @nvie doesn't beat me to it, I will get the new release on the way on my next maintenance slot. Maybe tomorrow ... . |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
thank you ;-) preparing my own code to be ready to point to the right version! :-) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'll add 2 more bug fixes tonight to this release. After I'm done with those, I'll roll a new release :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.