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
Daniel Barkalow <barkalow@iabervon.org>
Date
Feb 26, 2008, 16:27 UTC
Message-ID
<alpine.LNX.1.00.0802261123170.19024@iabervon.org>
In-Reply-To
<7v1w70h96u.fsf@gitster.siamese.dyndns.org>
On Mon, 25 Feb 2008, Junio C Hamano wrote:
Show 7 quoted lines
> 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...
Like "git format-patch -2". What is that actually called?
Show 10 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?

That last line, yes. I need a checkpatch for new uses of stderr or something.

	-Daniel
*This .sig left intentionally blank*
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 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.