File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed
Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -1621,12 +1621,33 @@ _git_pull ()
16211621
16221622__git_push_recurse_submodules=" check on-demand"
16231623
1624+ __git_complete_force_with_lease ()
1625+ {
1626+ local cur_=$1
1627+
1628+ case " $cur_ " in
1629+ --* =)
1630+ ;;
1631+ * :* )
1632+ __gitcomp_nl " $( __git_refs) " " " " ${cur_#*: } "
1633+ ;;
1634+ * )
1635+ __gitcomp_nl " $( __git_refs) " " " " $cur_ "
1636+ ;;
1637+ esac
1638+ }
1639+
16241640_git_push ()
16251641{
16261642 case " $prev " in
16271643 --repo)
16281644 __gitcomp_nl " $( __git_remotes) "
16291645 return
1646+ ;;
1647+ --recurse-submodules)
1648+ __gitcomp " $__git_push_recurse_submodules "
1649+ return
1650+ ;;
16301651 esac
16311652 case " $cur " in
16321653 --repo=* )
@@ -1637,11 +1658,16 @@ _git_push ()
16371658 __gitcomp " $__git_push_recurse_submodules " " " " ${cur## --recurse-submodules=} "
16381659 return
16391660 ;;
1661+ --force-with-lease=* )
1662+ __git_complete_force_with_lease " ${cur## --force-with-lease=} "
1663+ return
1664+ ;;
16401665 --* )
16411666 __gitcomp "
16421667 --all --mirror --tags --dry-run --force --verbose
1668+ --quiet --prune --delete --follow-tags
16431669 --receive-pack= --repo= --set-upstream
1644- --recurse-submodules=
1670+ --force-with-lease --force-with-lease= -- recurse-submodules=
16451671 "
16461672 return
16471673 ;;
You can’t perform that action at this time.
0 commit comments