Skip to content

Commit a4fd114

Browse files
committed
Merge branch 'kk/complete-diff-color-moved'
Completion update. * kk/complete-diff-color-moved: completion: add diff --color-moved[-ws]
2 parents a0d752c + fd0bc17 commit a4fd114

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,9 +1492,16 @@ __git_diff_algorithms="myers minimal patience histogram"
14921492

14931493
__git_diff_submodule_formats="diff log short"
14941494

1495+
__git_color_moved_opts="no default plain blocks zebra dimmed-zebra"
1496+
1497+
__git_color_moved_ws_opts="no ignore-space-at-eol ignore-space-change
1498+
ignore-all-space allow-indentation-change"
1499+
14951500
__git_diff_common_options="--stat --numstat --shortstat --summary
14961501
--patch-with-stat --name-only --name-status --color
14971502
--no-color --color-words --no-renames --check
1503+
--color-moved --color-moved= --no-color-moved
1504+
--color-moved-ws= --no-color-moved-ws
14981505
--full-index --binary --abbrev --diff-filter=
14991506
--find-copies-harder --ignore-cr-at-eol
15001507
--text --ignore-space-at-eol --ignore-space-change
@@ -1525,6 +1532,14 @@ _git_diff ()
15251532
__gitcomp "$__git_diff_submodule_formats" "" "${cur##--submodule=}"
15261533
return
15271534
;;
1535+
--color-moved=*)
1536+
__gitcomp "$__git_color_moved_opts" "" "${cur##--color-moved=}"
1537+
return
1538+
;;
1539+
--color-moved-ws=*)
1540+
__gitcomp "$__git_color_moved_ws_opts" "" "${cur##--color-moved-ws=}"
1541+
return
1542+
;;
15281543
--*)
15291544
__gitcomp "--cached --staged --pickaxe-all --pickaxe-regex
15301545
--base --ours --theirs --no-index

0 commit comments

Comments
 (0)