##// END OF EJS Templates
_hg_status improvements in bash_completion:...
Thomas Arendsen Hein -
r1639:dbfc04a5 default
parent child Browse files
Show More
@@ -39,7 +39,7 b' shopt -s extglob'
39
39
40 _hg_status()
40 _hg_status()
41 {
41 {
42 local files="$( hg status -$1 . | cut -b 3- )"
42 local files="$( hg status -n$1 . )"
43 COMPREPLY=(${COMPREPLY[@]:-} $( compgen -W "$files" -- "$cur" ))
43 COMPREPLY=(${COMPREPLY[@]:-} $( compgen -W "$files" -- "$cur" ))
44 }
44 }
45
45
@@ -140,19 +140,19 b' shopt -s extglob'
140 _hg_status "u"
140 _hg_status "u"
141 ;;
141 ;;
142 commit)
142 commit)
143 _hg_status "mra"
143 _hg_status "mar"
144 ;;
144 ;;
145 remove)
145 remove)
146 _hg_status "r"
146 _hg_status "d"
147 ;;
147 ;;
148 forget)
148 forget)
149 _hg_status "a"
149 _hg_status "a"
150 ;;
150 ;;
151 diff)
151 diff)
152 _hg_status "mra"
152 _hg_status "mar"
153 ;;
153 ;;
154 revert)
154 revert)
155 _hg_status "mra"
155 _hg_status "mard"
156 ;;
156 ;;
157 clone)
157 clone)
158 local count=$(_hg_count_non_option)
158 local count=$(_hg_count_non_option)
General Comments 0
You need to be logged in to leave comments. Login now