diff options
author | Jonathan Channon <jonathan.channon@gmail.com> | 2017-11-07 16:06:19 +0000 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2017-11-07 08:06:19 -0800 |
commit | 5486aa21eb3e3a6068a814531799063280800c19 (patch) | |
tree | 6d9a637eb4167756fffd1bfaa610154c58aa18e9 /plugins | |
parent | 766b47d8b85dea53ae6afb64031f6ed9dc271663 (diff) | |
download | zsh-5486aa21eb3e3a6068a814531799063280800c19.tar.gz zsh-5486aa21eb3e3a6068a814531799063280800c19.tar.bz2 zsh-5486aa21eb3e3a6068a814531799063280800c19.zip |
Added --force-with-lease method (#5025)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/git/git.plugin.zsh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 52dcea7dd..4536e191a 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -107,6 +107,10 @@ ggf() { [[ "$#" != 1 ]] && local b="$(git_current_branch)" git push --force origin "${b:=$1}" } +ggfl() { +[[ "$#" != 1 ]] && local b="$(git_current_branch)" +git push --force-with-lease origin "${b:=$1}" +} compdef _git ggf=git-checkout ggl() { |