@@ -4877,15 +4877,17 @@ void diff_setup_done(struct diff_options *options)
48774877
48784878	if  (HAS_MULTI_BITS (options -> pickaxe_opts  &  DIFF_PICKAXE_KINDS_MASK ))
48794879		die (_ ("options '%s', '%s', and '%s' cannot be used together" ),
4880- 			"-G" , "-S" , "--find-object" );
4880+ 			"-G/--patch-grep " , "-S/--patch-modifies " , "--find-object" );
48814881
48824882	if  (HAS_MULTI_BITS (options -> pickaxe_opts  &  DIFF_PICKAXE_KINDS_G_REGEX_MASK ))
48834883		die (_ ("options '%s' and '%s' cannot be used together, use '%s' with '%s'" ),
4884- 			"-G" , "--pickaxe-regex" , "--pickaxe-regex" , "-S" );
4884+ 			"-G/--patch-grep" , "--pickaxe-regex" ,
4885+ 			"--pickaxe-regex" , "-S/--patch-modifies" );
48854886
48864887	if  (HAS_MULTI_BITS (options -> pickaxe_opts  &  DIFF_PICKAXE_KINDS_ALL_OBJFIND_MASK ))
48874888		die (_ ("options '%s' and '%s' cannot be used together, use '%s' with '%s' and '%s'" ),
4888- 			"--pickaxe-all" , "--find-object" , "--pickaxe-all" , "-G" , "-S" );
4889+ 			"--pickaxe-all" , "--find-object" ,
4890+ 			"--pickaxe-all" , "-G/--patch-grep" , "-S/--patch-modifies" );
48894891
48904892	/* 
48914893	 * Most of the time we can say "there are changes" 
@@ -5862,17 +5864,17 @@ struct option *add_diff_options(const struct option *opts,
58625864		OPT_SET_INT_F (0 , "ita-visible-in-index" , & options -> ita_invisible_in_index ,
58635865			      N_ ("treat 'git add -N' entries as real in the index" ),
58645866			      0 , PARSE_OPT_NONEG ),
5865- 		OPT_CALLBACK_F ('S' , NULL , options , N_ ("<string>" ),
5867+ 		OPT_CALLBACK_F ('S' , "patch-modifies" , options , N_ ("<string>" ),
58665868			       N_ ("look for differences that change the number of occurrences of the specified string" ),
58675869			       0 , diff_opt_pickaxe_string ),
5868- 		OPT_CALLBACK_F ('G' , NULL , options , N_ ("<regex>" ),
5869- 			       N_ ("look for differences that change the number of occurrences of  the specified regex" ),
5870+ 		OPT_CALLBACK_F ('G' , "patch-grep" , options , N_ ("<regex>" ),
5871+ 			       N_ ("look for differences where a patch contains  the specified regex" ),
58705872			       0 , diff_opt_pickaxe_regex ),
58715873		OPT_BIT_F (0 , "pickaxe-all" , & options -> pickaxe_opts ,
5872- 			  N_ ("show all changes in the changeset with -S or -G" ),
5874+ 			  N_ ("show all changes in the changeset with -S/--patch-modifies  or -G/--patch-grep " ),
58735875			  DIFF_PICKAXE_ALL , PARSE_OPT_NONEG ),
58745876		OPT_BIT_F (0 , "pickaxe-regex" , & options -> pickaxe_opts ,
5875- 			  N_ ("treat <string> in -S as extended POSIX regular expression" ),
5877+ 			  N_ ("treat <string> in -S/--patch-modifies  as extended POSIX regular expression" ),
58765878			  DIFF_PICKAXE_REGEX , PARSE_OPT_NONEG ),
58775879		OPT_FILENAME ('O' , NULL , & options -> orderfile ,
58785880			     N_ ("control the order in which files appear in the output" )),
0 commit comments