@@ -86,8 +86,8 @@ static int opt_parse_m(const struct option *opt, const char *arg, int unset)
86
86
static struct option builtin_commit_options [] = {
87
87
OPT__QUIET (& quiet ),
88
88
OPT__VERBOSE (& verbose ),
89
- OPT_GROUP ("Commit message options" ),
90
89
90
+ OPT_GROUP ("Commit message options" ),
91
91
OPT_STRING ('F' , "file" , & logfile , "FILE" , "read log from file" ),
92
92
OPT_STRING (0 , "author" , & force_author , "AUTHOR" , "override author for commit" ),
93
93
OPT_CALLBACK ('m' , "message" , & message , "MESSAGE" , "specify commit message" , opt_parse_m ),
@@ -96,6 +96,8 @@ static struct option builtin_commit_options[] = {
96
96
OPT_BOOLEAN ('s' , "signoff" , & signoff , "add Signed-off-by:" ),
97
97
OPT_STRING ('t' , "template" , & template_file , "FILE" , "use specified template file" ),
98
98
OPT_BOOLEAN ('e' , "edit" , & edit_flag , "force edit of commit" ),
99
+ OPT_STRING (0 , "cleanup" , & cleanup_arg , "default" , "how to strip spaces and #comments from message" ),
100
+ /* end commit message options */
99
101
100
102
OPT_GROUP ("Commit contents options" ),
101
103
OPT_BOOLEAN ('a' , "all" , & all , "commit all changed files" ),
@@ -106,7 +108,7 @@ static struct option builtin_commit_options[] = {
106
108
OPT_BOOLEAN (0 , "amend" , & amend , "amend previous commit" ),
107
109
{ OPTION_STRING , 'u' , "untracked-files" , & untracked_files_arg , "mode" , "show untracked files, optional modes: all, normal, no. (Default: all)" , PARSE_OPT_OPTARG , NULL , (intptr_t )"all" },
108
110
OPT_BOOLEAN (0 , "allow-empty" , & allow_empty , "ok to record an empty change" ),
109
- OPT_STRING ( 0 , "cleanup" , & cleanup_arg , "default" , "how to strip spaces and #comments from message" ),
111
+ /* end commit contents options */
110
112
111
113
OPT_END ()
112
114
};
0 commit comments