completion: complete `git push --force-with-lease=`

Signed-off-by: John Keeping <john@keeping.me.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>

John Keeping committed Jul 22, 2014 at 19:24 UTC aaf7253f84477d4be9b56072804e53c3098aaa90
1 file changed +21 -1
contrib/completion/git-completion.bash
+21 -1
@@ -1611,6 +1611,22 @@ _git_pull ()
1611
1612 __git_push_recurse_submodules="check on-demand"
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 +
1630 _git_push ()
1631 {
1632 case "$prev" in
@@ -1632,12 +1648,16 @@ _git_push ()
1648 __gitcomp "$__git_push_recurse_submodules" "" "${cur##--recurse-submodules=}"
1649 return
1650 ;;
1651 + --force-with-lease=*)
1652 + __git_complete_force_with_lease "${cur##--force-with-lease=}"
1653 + return
1654 + ;;
1655 --*)
1656 __gitcomp "
1657 --all --mirror --tags --dry-run --force --verbose
1658 --quiet --prune --delete --follow-tags
1659 --receive-pack= --repo= --set-upstream
1640 - --recurse-submodules=
1660 + --force-with-lease --force-with-lease= --recurse-submodules=
1661 "
1662 return
1663 ;;