Skip to content
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

Merged
merged 4 commits into from
Feb 27, 2022
Merged

add push command #23

merged 4 commits into from
Feb 27, 2022

Conversation

nissimbd
Copy link
Contributor

this is to push back our changes to the remote repository

@@ -1,4 +1,4 @@
_git_vendor()
{
__gitcomp "add list update"
__gitcomp "add list update push"
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, I will

@@ -11,13 +11,15 @@ git-vendor(1) -- manage vendored dependency subtrees

`git-vendor update <name> [<ref>]`

`git-vendor push <name> [<ref>]`
Copy link
Contributor

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:

  1. fork
  2. upstream to the fork-repo
  3. create pull- request from the fork-repo to the original repo

Copy link
Contributor Author

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

Copy link
Owner

@brettlangdon brettlangdon left a 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

bin/git-vendor Outdated Show resolved Hide resolved
bin/git-vendor Outdated Show resolved Hide resolved
man/git-vendor.md Show resolved Hide resolved
nissimbd and others added 2 commits February 27, 2022 09:11
Co-authored-by: Brett Langdon <me@brett.is>
Co-authored-by: Brett Langdon <me@brett.is>
@brettlangdon brettlangdon merged commit 99bb74a into brettlangdon:master Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants