@@ -1733,32 +1733,44 @@ __git_color_moved_opts="no default plain blocks zebra dimmed-zebra"
1733
1733
__git_color_moved_ws_opts=" no ignore-space-at-eol ignore-space-change
1734
1734
ignore-all-space allow-indentation-change"
1735
1735
1736
+ __git_ws_error_highlight_opts=" context old new all default"
1737
+
1738
+ # Options for the diff machinery (diff, log, show, stash, range-diff, ...)
1736
1739
__git_diff_common_options=" --stat --numstat --shortstat --summary
1737
1740
--patch-with-stat --name-only --name-status --color
1738
1741
--no-color --color-words --no-renames --check
1739
1742
--color-moved --color-moved= --no-color-moved
1740
1743
--color-moved-ws= --no-color-moved-ws
1741
1744
--full-index --binary --abbrev --diff-filter=
1745
+ --find-copies --find-object --find-renames
1746
+ --no-relative --relative
1742
1747
--find-copies-harder --ignore-cr-at-eol
1743
1748
--text --ignore-space-at-eol --ignore-space-change
1744
1749
--ignore-all-space --ignore-blank-lines --exit-code
1745
- --quiet --ext-diff --no-ext-diff
1750
+ --quiet --ext-diff --no-ext-diff --unified=
1746
1751
--no-prefix --src-prefix= --dst-prefix=
1747
- --inter-hunk-context=
1752
+ --inter-hunk-context= --function-context
1748
1753
--patience --histogram --minimal
1749
1754
--raw --word-diff --word-diff-regex=
1750
1755
--dirstat --dirstat= --dirstat-by-file
1751
1756
--dirstat-by-file= --cumulative
1752
- --diff-algorithm=
1757
+ --diff-algorithm= --default-prefix
1753
1758
--submodule --submodule= --ignore-submodules
1754
1759
--indent-heuristic --no-indent-heuristic
1755
- --textconv --no-textconv
1756
- --patch --no-patch
1757
- --anchored=
1760
+ --textconv --no-textconv --break-rewrites
1761
+ --patch --no-patch --cc --combined-all-paths
1762
+ --anchored= --compact-summary --ignore-matching-lines=
1763
+ --irreversible-delete --line-prefix --no-stat
1764
+ --output= --output-indicator-context=
1765
+ --output-indicator-new= --output-indicator-old=
1766
+ --ws-error-highlight=
1767
+ --pickaxe-all --pickaxe-regex
1758
1768
"
1759
1769
1760
- __git_diff_difftool_options=" --cached --staged --pickaxe-all --pickaxe-regex
1761
- --base --ours --theirs --no-index --relative --merge-base
1770
+ # Options for diff/difftool
1771
+ __git_diff_difftool_options=" --cached --staged
1772
+ --base --ours --theirs --no-index --merge-base
1773
+ --ita-invisible-in-index --ita-visible-in-index
1762
1774
$__git_diff_common_options "
1763
1775
1764
1776
_git_diff ()
@@ -1782,6 +1794,10 @@ _git_diff ()
1782
1794
__gitcomp " $__git_color_moved_ws_opts " " " " ${cur## --color-moved-ws=} "
1783
1795
return
1784
1796
;;
1797
+ --ws-error-highlight=* )
1798
+ __gitcomp " $__git_ws_error_highlight_opts " " " " ${cur## --ws-error-highlight=} "
1799
+ return
1800
+ ;;
1785
1801
--* )
1786
1802
__gitcomp " $__git_diff_difftool_options "
1787
1803
return
@@ -2024,6 +2040,12 @@ __git_log_shortlog_options="
2024
2040
--author= --committer= --grep=
2025
2041
--all-match --invert-grep
2026
2042
"
2043
+ # Options accepted by log and show
2044
+ __git_log_show_options="
2045
+ --diff-merges --diff-merges= --no-diff-merges --remerge-diff
2046
+ "
2047
+
2048
+ __git_diff_merges_opts=" off none on first-parent 1 separate m combined c dense-combined cc remerge r"
2027
2049
2028
2050
__git_log_pretty_formats=" oneline short medium full fuller reference email raw format: tformat: mboxrd"
2029
2051
__git_log_date_formats=" relative iso8601 iso8601-strict rfc2822 short local default human raw unix auto: format:"
@@ -2072,15 +2094,24 @@ _git_log ()
2072
2094
__gitcomp " $__git_diff_submodule_formats " " " " ${cur## --submodule=} "
2073
2095
return
2074
2096
;;
2097
+ --ws-error-highlight=* )
2098
+ __gitcomp " $__git_ws_error_highlight_opts " " " " ${cur## --ws-error-highlight=} "
2099
+ return
2100
+ ;;
2075
2101
--no-walk=* )
2076
2102
__gitcomp " sorted unsorted" " " " ${cur## --no-walk=} "
2077
2103
return
2078
2104
;;
2105
+ --diff-merges=* )
2106
+ __gitcomp " $__git_diff_merges_opts " " " " ${cur## --diff-merges=} "
2107
+ return
2108
+ ;;
2079
2109
--* )
2080
2110
__gitcomp "
2081
2111
$__git_log_common_options
2082
2112
$__git_log_shortlog_options
2083
2113
$__git_log_gitk_options
2114
+ $__git_log_show_options
2084
2115
--root --topo-order --date-order --reverse
2085
2116
--follow --full-diff
2086
2117
--abbrev-commit --no-abbrev-commit --abbrev=
@@ -2097,7 +2128,6 @@ _git_log ()
2097
2128
--expand-tabs --expand-tabs= --no-expand-tabs
2098
2129
$merge
2099
2130
$__git_diff_common_options
2100
- --pickaxe-all --pickaxe-regex
2101
2131
"
2102
2132
return
2103
2133
;;
@@ -2992,10 +3022,19 @@ _git_show ()
2992
3022
__gitcomp " $__git_color_moved_ws_opts " " " " ${cur## --color-moved-ws=} "
2993
3023
return
2994
3024
;;
3025
+ --ws-error-highlight=* )
3026
+ __gitcomp " $__git_ws_error_highlight_opts " " " " ${cur## --ws-error-highlight=} "
3027
+ return
3028
+ ;;
3029
+ --diff-merges=* )
3030
+ __gitcomp " $__git_diff_merges_opts " " " " ${cur## --diff-merges=} "
3031
+ return
3032
+ ;;
2995
3033
--* )
2996
3034
__gitcomp " --pretty= --format= --abbrev-commit --no-abbrev-commit
2997
3035
--oneline --show-signature
2998
3036
--expand-tabs --expand-tabs= --no-expand-tabs
3037
+ $__git_log_show_options
2999
3038
$__git_diff_common_options
3000
3039
"
3001
3040
return
0 commit comments