Unmarked the colo(u)r options of the git command as requiring an argument

According to man, the argument is optional:

$ man git
       --color[=WHEN], --colour[=WHEN]
This commit is contained in:
Sergei Morozov 2019-10-01 18:31:06 -07:00 committed by Fabian Homborg
parent f1baa514a8
commit 2fa3c6298b

View file

@ -4,8 +4,8 @@ complete -c grep -s B -l before-context -d "Print NUM lines of leading context"
complete -c grep -s C -l context -d "Print NUM lines of context"
complete -c grep -s b -l byte-offset -d "Print byte offset of matches"
complete -c grep -l binary-files -d "Assume data type for binary files" -x -a "binary\tBinary\ format text\tText\ format"
complete -c grep -l colour -x -d "Colour output" -a "never always auto"
complete -c grep -l color -x -d "Color output" -a "never always auto"
complete -c grep -l colour -f -d "Colour output" -a "never always auto"
complete -c grep -l color -f -d "Color output" -a "never always auto"
complete -c grep -s c -l count -d "Only print number of matches"
complete -c grep -s D -l devices -x -a "read skip" -d "Action for devices"
complete -c grep -s d -l directories -x -a "read skip recurse" -d "Action for directories"