-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add push command #23
add push command #23
Conversation
etc/bash_completion.sh
Outdated
@@ -1,4 +1,4 @@ | |||
_git_vendor() | |||
{ | |||
__gitcomp "add list update" | |||
__gitcomp "add list update push" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think upstream
better describes the operation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I will
man/git-vendor.md
Outdated
@@ -11,13 +11,15 @@ git-vendor(1) -- manage vendored dependency subtrees | |||
|
|||
`git-vendor update <name> [<ref>]` | |||
|
|||
`git-vendor push <name> [<ref>]` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add new optional argument that can override $repository
as in most cases you will not have write access to the origin repo and if you want to upstream your changes you would need to:
- fork
- upstream to the fork-repo
- create pull- request from the fork-repo to the original repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for this I will need to parse the arguments and add the new optional argument with an option name to distinguish between ref and repo like:
git vendor upstream [--repo repository] and optional ref
…n override $repository
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few minor nits, but otherwise lgtm
Co-authored-by: Brett Langdon <me@brett.is>
Co-authored-by: Brett Langdon <me@brett.is>
this is to push back our changes to the remote repository