From: Alex Riesen Date: Tue, 27 Nov 2007 21:47:13 GMT Subject: Re: [PATCH] Do not generate full commit log message if it not going to be used Message-ID: <20071127214713.GB3156@steel.home> In-Reply-To: <20071127214425.GA3156@steel.home> Alex Riesen, Tue, Nov 27, 2007 22:44:25 +0100: > --- 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