Re: [PATCH] Do not generate full commit log message if it not going to be used
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Nov 27, 2007, 21:47 UTC
- Message-ID
- <20071127214713.GB3156@steel.home>
- In-Reply-To
- <20071127214425.GA3156@steel.home>
Alex Riesen, Tue, Nov 27, 2007 22:44:25 +0100:
Show 11 quoted lines
> --- a/builtin-commit.c
> +++ b/builtin-commit.c
> @@ -367,6 +367,30 @@ static int prepare_log_message(const char *index_file, const char *prefix)
>
> strbuf_release(&sb);
>
> + if (no_edit) {
> + static const char *argv[] = { NULL, "HEAD", NULL };
> + struct rev_info rev;
> + unsigned char sha1[40];
> + int is_initial;is_initial is left over from "development process". Well, from stealing out of wt-status.c