Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit ba98a2f

Browse files
committed
Merge branch 'jk/complete-merge-base'
* jk/complete-merge-base: completion: handle --[no-]fork-point options to git-rebase completion: complete merge-base options
2 parents c9e8c1a + 4310e32 commit ba98a2f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,6 +1499,12 @@ _git_mergetool ()
14991499

15001500
_git_merge_base ()
15011501
{
1502+
case "$cur" in
1503+
--*)
1504+
__gitcomp "--octopus --independent --is-ancestor --fork-point"
1505+
return
1506+
;;
1507+
esac
15021508
__gitcomp_nl "$(__git_refs)"
15031509
}
15041510

@@ -1631,7 +1637,7 @@ _git_rebase ()
16311637
--preserve-merges --stat --no-stat
16321638
--committer-date-is-author-date --ignore-date
16331639
--ignore-whitespace --whitespace=
1634-
--autosquash
1640+
--autosquash --fork-point --no-fork-point
16351641
"
16361642

16371643
return

0 commit comments

Comments
 (0)