-
Notifications
You must be signed in to change notification settings - Fork 49
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
Feature: add a git push command / mapping #24
Comments
Hi @addcninblue
Excellent! PR are very welcomed. I don't have much time this year to add new features in vimagit. Anyway, this is quite a big feature, and maybe not the easiest way for a first PR. This feature will require good skills in both git and vimscript. I updated the feature description. It'll need to be detailed. Other open tickets:
I would like to highlight that such new feature will need to be fully tested before being merged in next and/or master (see test/ repository).
That's a good start. Check out the updated feature description. |
See https://stackoverflow.com/questions/34099451/get-default-remote-push-and-default-remote-branch From a script, I would like to get the default push remote and the default push branch. For the recall, git will choose the remote between these settings, in this order:
I can't find any reference how git is choosing this last default origin, but it seems static. Default remote branch can be:
Now, I would like a safe way to get both default push remote and default push branch.
Finally, I have two questions:
|
Current state of thought. Thanks to comment on:
There may be several commands:
There nothing especially magic around here. The main challenge is the user prompt with completion. |
I would cut Secondly, for my personal use case it would be nice to have |
Hi, First of all, thanks for the great plugin! I'm not a fan of Git GUIs but typing every command separately is not only tiresome but a bit limiting (e.g. I'd never stage separate hunks via CLI) so this is the perfect tool for me. The only thing I'm missing is the aforementioned push support and I understand that for a rich experience all these completion features and options are really important but a temporary |
This feature must handle correctly git behavior of default remote branch. When user push without defining the remote repo and/or branch, vimagit will need to choose between:
This list may is certainly wrong, and must be corrected.
When none of the above default behavior is found, user is invited to choose the repo and the remote branch.
When the user choose the repo and/or the remote branch:
The text was updated successfully, but these errors were encountered: