hg completion: suggest files from hg st -amr for hg diff

Added and removed files are already suggested for hg commit, makes sense
to do the same for hg diff.
This commit is contained in:
Anton Shestakov 2018-08-13 14:58:03 +08:00
parent a9c30b05af
commit 27c06c997c

View file

@ -564,7 +564,7 @@ end
# hg diff # hg diff
for cmd in d di dif diff for cmd in d di dif diff
complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -m)" complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -amr)"
complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision" complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision"
complete -c hg -n "__fish_hg_using_command $cmd" -s c -l change -x -a "(__fish_hg_labels)" -d "change made by revision" complete -c hg -n "__fish_hg_using_command $cmd" -s c -l change -x -a "(__fish_hg_labels)" -d "change made by revision"
complete -c hg -n "__fish_hg_using_command $cmd" -s a -l text -d "treat all files as text" complete -c hg -n "__fish_hg_using_command $cmd" -s a -l text -d "treat all files as text"