This repository was archived by the owner on Nov 9, 2017. It is now read-only.
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 ()
1621
1621
1622
1622
__git_push_recurse_submodules="check on-demand"
1623
1623
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
+
1624
1640
_git_push ()
1625
1641
{
1626
1642
case "$prev" in
1627
1643
--repo)
1628
1644
__gitcomp_nl "$(__git_remotes)"
1629
1645
return
1646
+ ;;
1647
+ --recurse-submodules)
1648
+ __gitcomp "$__git_push_recurse_submodules"
1649
+ return
1650
+ ;;
1630
1651
esac
1631
1652
case "$cur" in
1632
1653
--repo=*)
@@ -1637,11 +1658,16 @@ _git_push ()
1637
1658
__gitcomp "$__git_push_recurse_submodules" "" "${cur##--recurse-submodules=}"
1638
1659
return
1639
1660
;;
1661
+ --force-with-lease=*)
1662
+ __git_complete_force_with_lease "${cur##--force-with-lease=}"
1663
+ return
1664
+ ;;
1640
1665
--*)
1641
1666
__gitcomp "
1642
1667
--all --mirror --tags --dry-run --force --verbose
1668
+ --quiet --prune --delete --follow-tags
1643
1669
--receive-pack= --repo= --set-upstream
1644
- --recurse-submodules=
1670
+ --force-with-lease --force-with-lease= -- recurse-submodules=
1645
1671
"
1646
1672
return
1647
1673
;;
You can’t perform that action at this time.
0 commit comments