From 27c06c997c35534847c810323965164dc993162f Mon Sep 17 00:00:00 2001 From: Anton Shestakov Date: Mon, 13 Aug 2018 14:58:03 +0800 Subject: [PATCH] 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. --- share/completions/hg.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/hg.fish b/share/completions/hg.fish index 95859bec3..dd72c6317 100644 --- a/share/completions/hg.fish +++ b/share/completions/hg.fish @@ -564,7 +564,7 @@ end # hg 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 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"