]> git.ipfire.org Git - thirdparty/git.git/commit - contrib/completion/git-completion.bash
contrib/completion: extract common diff/difftool options
authorDenton Liu <liu.denton@gmail.com>
Thu, 17 Sep 2020 07:44:08 +0000 (00:44 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Sep 2020 16:38:47 +0000 (09:38 -0700)
commit308d7a7dc99043c90a9eff6916cad1abe0d473aa
tree6c66a73ff523ff2d11d9ba063ab30d3f73b08912
parenta8fa6a08f4ff3ab99f99dd7ae989bd825071def3
contrib/completion: extract common diff/difftool options

difftool parses its own options and then passes the remaining options
onto diff. As a result, they share common command-line options. Instead
of duplicating the list, use a shared $__git_diff_difftool_options list.

The completion for diff is missing --relative and the completion for
difftool is missing --no-index. Add both of these to the common list.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash