@@ -420,7 +420,7 @@ _stg-delete() {
420
420
_stg-diff () {
421
421
local -a subcmd_args
422
422
__stg_add_args_help
423
- __stg_add_args_diffopts
423
+ __stg_add_args_diffopt
424
424
subcmd_args+=(
425
425
' (-r --range)' {-r,--range=}' [show diff between revisions]: :__stg_patchrange --suggest-range --all'
426
426
' (-s --stat)' {-s,--stat}' [show stat instead of diff]'
@@ -486,7 +486,7 @@ _stg-email-format() {
486
486
__stg_add_args_color
487
487
__stg_add_args_branch
488
488
subcmd_args+=(
489
- ' *' {-G+,--git-opts =}' [extra options for git-format-patch]:opts :__stg_git_format_patch_opts'
489
+ ' *' {-G+,--git-opt =}' [extra option for git-format-patch]:opt :__stg_git_format_patch_opts'
490
490
' (-o --output-directory)' {-o+,--output-directory=}' [store resulting files in given directory]: :_directories'
491
491
' (-n --numbered -N --no-numbered -k --keep-subject)' {-n,--numbered}' [name output in \[PATCH n/m\] format]'
492
492
' (-n --numbered -N --no-numbered -k --keep-subject)' {-N,--no-numbered}' [name output in \[PATCH\] format]'
@@ -541,7 +541,7 @@ _stg-email-send() {
541
541
__stg_add_args_help
542
542
__stg_add_args_color
543
543
subcmd_args+=(
544
- ' *' {-G+,--git-opts =}' [extra options for git-send-email]:opts :__stg_git_send_email_opts'
544
+ ' *' {-G+,--git-opt =}' [extra option for git-send-email]:opt :__stg_git_send_email_opts'
545
545
' --from=[specify sender]:email address:_email_addresses'
546
546
' --to=[specify the primary recipient of the emails]: :_email_addresses'
547
547
' --cc=[starting Cc: value for each email]: :_email_addresses'
@@ -605,7 +605,7 @@ _stg-export() {
605
605
local -a subcmd_args
606
606
__stg_add_args_help
607
607
__stg_add_args_branch
608
- __stg_add_args_diffopts
608
+ __stg_add_args_diffopt
609
609
subcmd_args+=(
610
610
' (-d --dir)' {-d,--dir}' [export patches to directory]: :_directories'
611
611
' (-n --numbered)' {-n,--numbered}' [prefix patch names with order numbers]'
@@ -786,7 +786,7 @@ _stg-patches() {
786
786
local -a subcmd_args
787
787
__stg_add_args_help
788
788
__stg_add_args_branch
789
- __stg_add_args_diffopts
789
+ __stg_add_args_diffopt
790
790
subcmd_args+=(
791
791
' (-d --diff)' {-d,--diff}' [show diffs of given files]'
792
792
' *:files:__stg_cached_files'
@@ -901,7 +901,7 @@ _stg-refresh() {
901
901
__stg_add_args_edit
902
902
__stg_add_args_hook
903
903
__stg_add_args_trailers
904
- __stg_add_args_diffopts
904
+ __stg_add_args_diffopt
905
905
subcmd_args+=(
906
906
' (-a --annotate)' {-a,--annotate=}' [annotate patch log entry]:note'
907
907
' (-d --diff)' {-d,--diff}' [show diff when editing patch message]'
@@ -984,7 +984,7 @@ _stg-show() {
984
984
985
985
__stg_add_args_help
986
986
__stg_add_args_branch
987
- __stg_add_args_diffopts
987
+ __stg_add_args_diffopt
988
988
subcmd_args+=(
989
989
' (*)' {-p,--patch=}' [patch or revision to show]: :__stg_dedup_inside_arguments __stg_patchrange --all'
990
990
' (-s --stat)' {-s,--stat}' [show diff stat]'
@@ -1148,10 +1148,9 @@ __stg_add_args_color() {
1148
1148
)
1149
1149
}
1150
1150
1151
- __stg_add_args_diffopts () {
1152
- # TODO: complete diff-opts values (with separators?)
1151
+ __stg_add_args_diffopt () {
1153
1152
subcmd_args+=(
1154
- ' (-O --diff-opts) ' {-O+,--diff-opts =}' [extra options for git diff]:opts :__stg_git_diff_opts'
1153
+ ' * ' {-O+,--diff-opt =}' [extra option for git diff]:opt :__stg_git_diff_opts'
1155
1154
)
1156
1155
}
1157
1156
@@ -1211,7 +1210,7 @@ __stg_git_diff_opts() {
1211
1210
words=(' git' ${(@ )__stg_C_args} ' diff-tree' )
1212
1211
# Needs a way to know word indices for opt_args values to only provide through CURRENT.
1213
1212
#
1214
- # words+=(${(0)opt_args[-O]} ${(0)opt_args[--diff-opts ]})
1213
+ # words+=(${(0)opt_args[-O]} ${(0)opt_args[--diff-opt ]})
1215
1214
words+=(" $PREFIX$SUFFIX " )
1216
1215
(( CURRENT = $# words ))
1217
1216
@@ -1225,7 +1224,7 @@ __stg_git_format_patch_opts() {
1225
1224
words=(' git' ${(@ )__stg_C_args} ' format-patch' )
1226
1225
# Needs a way to know word indices for opt_args values to only provide through CURRENT.
1227
1226
#
1228
- # words+=(${(0)opt_args[-G]} ${(0)opt_args[--git-opts ]})
1227
+ # words+=(${(0)opt_args[-G]} ${(0)opt_args[--git-opt ]})
1229
1228
words+=(" $PREFIX$SUFFIX " )
1230
1229
(( CURRENT = $# words ))
1231
1230
@@ -1239,7 +1238,7 @@ __stg_git_send_email_opts() {
1239
1238
words=(' git' ${(@ )__stg_C_args} ' send-email' )
1240
1239
# Needs a way to know word indices for opt_args values to only provide through CURRENT.
1241
1240
#
1242
- # words+=(${(0)opt_args[-G]} ${(0)opt_args[--git-opts ]})
1241
+ # words+=(${(0)opt_args[-G]} ${(0)opt_args[--git-opt ]})
1243
1242
words+=(" $PREFIX$SUFFIX " )
1244
1243
(( CURRENT = $# words ))
1245
1244
0 commit comments