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

Re: [PATCH 2/2] Improve collection of information for format-patch --cover-letter

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 26, 2008, 00:07 UTC
Message-ID
<7v1w70h96u.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LNX.1.00.0802251822240.19024@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
> ... Note that the single boundary test is empirical, not 
> theoretical; even a -2 limiting condition will give a diffstat if there's 
> only one boundary commit in this particular case.
It is unclear what "a -2 limiting condition" means here...
Show 10 quoted lines
> @@ -679,21 +682,19 @@ static void make_cover_letter(struct rev_info *rev,
>  
>  	strbuf_release(&sb);
>  
> +	shortlog_init(&log);
> +	for (i = 0; i < nr; i++)
> +		shortlog_add_commit(&log, list[i]);
> +
> +	shortlog_output(&log);
> +
Nice ;-)
Show 8 quoted lines
> @@ -962,7 +957,15 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
>  
>  	if (prepare_revision_walk(&rev))
>  		die("revision walk setup failed");
> +	rev.boundary = 1;
>  	while ((commit = get_revision(&rev)) != NULL) {
> +		if (commit->object.flags & BOUNDARY) {
> +			fprintf(stderr, "Boundary %s\n", sha1_to_hex(commit->object.sha1));
Leftover debugging?
Previous: Daniel BarkalowNext: Daniel Barkalow
Message 2 of 8 in “Improve collection of information for format-patch --cover-letter”
  1. 2/2 Improve collection of information for format-patch --cover-letterDaniel Barkalow, Feb 25, 2008
  2. Junio C HamanoFeb 26, 2008
  3. Daniel BarkalowFeb 26, 2008
  4. Junio C HamanoFeb 26, 2008
  5. format-patch: remove a leftover debugging messageJunio C Hamano, Feb 28, 2008
  6. Daniel BarkalowFeb 28, 2008
  7. Junio C HamanoFeb 26, 2008
  8. Junio C HamanoFeb 26, 2008

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.