Skip to content

Commit 1d056a9

Browse files
committed
Add Bash completion file
1 parent fa0f62b commit 1d056a9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

completion.bash

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
__git_fmt_diff_options="
2+
--cached
3+
--staged
4+
--color
5+
--no-color
6+
--config
7+
--warn-risky-stderr
8+
"
9+
10+
_git_fmt_diff () {
11+
__git_has_doubledash && return
12+
13+
# shellcheck disable=SC2154
14+
case "$cur" in
15+
--*)
16+
__gitcomp "$__git_fmt_diff_options"
17+
return
18+
;;
19+
esac
20+
21+
__git_complete_revlist_file
22+
}

0 commit comments

Comments
 (0)