git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v4] commit -v: strip diffs and submodule shortlogs from the commit message

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 5, 2013, 23:10 UTC
Message-ID
<xmqqzjoe3nec.fsf@gitster.dls.corp.google.com>
In-Reply-To
<52A0D78E.4030509@web.de>
Jens Lehmann <Jens.Lehmann@web.de> writes:
> +		fprintf(s->fp, "%c %s", comment_line_char, cut_line);
> +		strbuf_add_commented_lines(&buf, explanation, strlen(explanation));
> +		fprintf(s->fp, buf.buf);
This is better done with:
	fputs(buf.buf, s->fp);

Already locally tweaked while applying, so no need to resend only for this change.

Previous: Junio C Hamano
Message 7 of 7 in “commit -v: strip diffs and submodule shortlogs from the commit message”
  1. commit -v: strip diffs and submodule shortlogs from the commit messageJens Lehmann, Nov 20, 2013
  2. Junio C HamanoNov 20, 2013
  3. Jens LehmannNov 21, 2013
  4. Junio C HamanoNov 21, 2013
  5. commit -v: strip diffs and submodule shortlogs from the commit messageJens Lehmann, Dec 5, 2013
  6. Junio C HamanoDec 5, 2013
  7. Junio C HamanoDec 5, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.