File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -1611,6 +1611,22 @@ _git_pull ()
1611
1611
1612
1612
__git_push_recurse_submodules=" check on-demand"
1613
1613
1614
+ __git_complete_force_with_lease ()
1615
+ {
1616
+ local cur_=$1
1617
+
1618
+ case " $cur_ " in
1619
+ --* =)
1620
+ ;;
1621
+ * :* )
1622
+ __gitcomp_nl " $( __git_refs) " " " " ${cur_#*: } "
1623
+ ;;
1624
+ * )
1625
+ __gitcomp_nl " $( __git_refs) " " " " $cur_ "
1626
+ ;;
1627
+ esac
1628
+ }
1629
+
1614
1630
_git_push ()
1615
1631
{
1616
1632
case " $prev " in
@@ -1632,12 +1648,16 @@ _git_push ()
1632
1648
__gitcomp " $__git_push_recurse_submodules " " " " ${cur## --recurse-submodules=} "
1633
1649
return
1634
1650
;;
1651
+ --force-with-lease=* )
1652
+ __git_complete_force_with_lease " ${cur## --force-with-lease=} "
1653
+ return
1654
+ ;;
1635
1655
--* )
1636
1656
__gitcomp "
1637
1657
--all --mirror --tags --dry-run --force --verbose
1638
1658
--quiet --prune --delete --follow-tags
1639
1659
--receive-pack= --repo= --set-upstream
1640
- --recurse-submodules=
1660
+ --force-with-lease --force-with-lease= -- recurse-submodules=
1641
1661
"
1642
1662
return
1643
1663
;;
You can’t perform that action at this time.
0 commit comments