diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-12-30 01:25:21 -0800 | 
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-12-30 01:25:21 -0800 | 
| commit | 9e7ad090fad725e5f1862f64b07dc15d54bdc5b9 (patch) | |
| tree | 68eac0341c001ba82d4a309e0c80b166e0007142 /builtin-commit.c | |
| parent | c2ff10c98e22ae64d553273e6d67bb123a1c916f (diff) | |
| parent | b0b3a241e2ca1ba5b928a128b6dcafb990df6e75 (diff) | |
| download | git-9e7ad090fad725e5f1862f64b07dc15d54bdc5b9.tar.gz | |
Merge branch 'maint'
* maint:
  textconv: stop leaking file descriptors
  commit: --cleanup is a message option
  git count-objects: handle packs bigger than 4G
  t7102: make the test fail if one of its check fails
  Documentation: always respect core.worktree if set
Diffstat (limited to 'builtin-commit.c')
| -rw-r--r-- | builtin-commit.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/builtin-commit.c b/builtin-commit.c index 6822aa07ca..3dfcd77c45 100644 --- a/builtin-commit.c +++ b/builtin-commit.c @@ -94,8 +94,8 @@ static int opt_parse_m(const struct option *opt, const char *arg, int unset)  static struct option builtin_commit_options[] = {  	OPT__QUIET(&quiet),  	OPT__VERBOSE(&verbose), -	OPT_GROUP("Commit message options"), +	OPT_GROUP("Commit message options"),  	OPT_FILENAME('F', "file", &logfile, "read log from file"),  	OPT_STRING(0, "author", &force_author, "AUTHOR", "override author for commit"),  	OPT_CALLBACK('m', "message", &message, "MESSAGE", "specify commit message", opt_parse_m), @@ -105,6 +105,8 @@ static struct option builtin_commit_options[] = {  	OPT_BOOLEAN('s', "signoff", &signoff, "add Signed-off-by:"),  	OPT_FILENAME('t', "template", &template_file, "use specified template file"),  	OPT_BOOLEAN('e', "edit", &edit_flag, "force edit of commit"), +	OPT_STRING(0, "cleanup", &cleanup_arg, "default", "how to strip spaces and #comments from message"), +	/* end commit message options */  	OPT_GROUP("Commit contents options"),  	OPT_BOOLEAN('a', "all", &all, "commit all changed files"), @@ -122,7 +124,7 @@ static struct option builtin_commit_options[] = {  	OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),  	{ 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" },  	OPT_BOOLEAN(0, "allow-empty", &allow_empty, "ok to record an empty change"), -	OPT_STRING(0, "cleanup", &cleanup_arg, "default", "how to strip spaces and #comments from message"), +	/* end commit contents options */  	OPT_END()  }; | 
