@@ -186,13 +186,6 @@ static int option_parse_n(const struct option *opt,
186
186
return 0 ;
187
187
}
188
188
189
- static int option_parse_ff_only (const struct option * opt ,
190
- const char * arg , int unset )
191
- {
192
- fast_forward = FF_ONLY ;
193
- return 0 ;
194
- }
195
-
196
189
static struct option builtin_merge_options [] = {
197
190
{ OPTION_CALLBACK , 'n' , NULL , NULL , NULL ,
198
191
N_ ("do not show a diffstat at the end of the merge" ),
@@ -210,9 +203,9 @@ static struct option builtin_merge_options[] = {
210
203
OPT_BOOL ('e' , "edit" , & option_edit ,
211
204
N_ ("edit message before committing" )),
212
205
OPT_SET_INT (0 , "ff" , & fast_forward , N_ ("allow fast-forward (default)" ), FF_ALLOW ),
213
- { OPTION_CALLBACK , 0 , "ff-only" , NULL , NULL ,
206
+ { OPTION_SET_INT , 0 , "ff-only" , & fast_forward , NULL ,
214
207
N_ ("abort if fast-forward is not possible" ),
215
- PARSE_OPT_NOARG | PARSE_OPT_NONEG , option_parse_ff_only },
208
+ PARSE_OPT_NOARG | PARSE_OPT_NONEG , NULL , FF_ONLY },
216
209
OPT_RERERE_AUTOUPDATE (& allow_rerere_auto ),
217
210
OPT_BOOL (0 , "verify-signatures" , & verify_signatures ,
218
211
N_ ("Verify that the named commit has a valid GPG signature" )),
0 commit comments