opencommit
opencommit copied to clipboard
[FEATURE REQUEST] `push` automatically with a config FORCE_PUSH
- I do not want to be asked to push commits and do not want the commits pushed by
oc.- Alternatively, some people may want the option to automatically push commits without being asked.
- Some people, not me, but some people may want the commit message used automatically without confirmation.
These all seem like great things to add as options IMHO.
@jetole thanks for the suggestion, do you want to make a PR?
- I don't have the time and have not used ts in years but if I have the time I might.
- If someone has the time and thinks this is a reasonable request then I would be greatful for the changes.
- I am not sure if the title change is accurate. While I do propose a force_push option, I am, primarily and for myself, asking for a no push and no prompt in that I won't be asked and no push will be done. I am proposing three separate options:
- No prompt, no push
- No prompt, push
- Comment w/o prompt
Maybe...
- Bool for push: If true than pushes are enabled and if false they are not (configurable bool)
- Bool to prompt for push: If true than prompt to push and if false than push w/o prompt.
- Bool to prompt for comment: If true, ask if the comment is acceptable and if false than use comment w/o user verification.
Yeah settings for push prompt would be nice.
Also there is one more thing. As default behavior oc should recognize if branch have upstream, and ask for push only when the upstream is set.
Stale issue message