contrib/bash_completion
changeset 3483 34cc82c6c7c2
parent 3482 e762c0e95eac
child 3484 a8823e6824fc
equal deleted inserted replaced
3482:e762c0e95eac 3483:34cc82c6c7c2
   362 
   362 
   363 # patchbomb
   363 # patchbomb
   364 _hg_cmd_email()
   364 _hg_cmd_email()
   365 {
   365 {
   366     case "$prev" in
   366     case "$prev" in
   367 	-c|--cc|-t|--to|-f|--from)
   367 	-c|--cc|-t|--to|-f|--from|--bcc)
   368 	    # we need an e-mail address. let the user provide a function 
   368 	    # we need an e-mail address. let the user provide a function 
   369 	    # to get them
   369 	    # to get them
   370 	    if [ "$(type -t _hg_emails)" = function ]; then
   370 	    if [ "$(type -t _hg_emails)" = function ]; then
   371 		local arg=to
   371 		local arg=to
   372 		if [[ "$prev" == @(-f|--from) ]]; then
   372 		if [[ "$prev" == @(-f|--from) ]]; then