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

Re: [PATCH] Move color option parsing out of diff.c and into color.[ch]

From
Jeff King <peff@peff.net>
Date
Sep 8, 2006, 09:12 UTC
Message-ID
<20060908091206.GA5758@coredump.intra.peff.net>
In-Reply-To
<7vk64eivzj.fsf@assigned-by-dhcp.cox.net>
On Fri, Sep 08, 2006 at 01:49:20AM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> > +	if (trail)
> > +		r += printf("%s", trail);
> > +	if (*color)
> > +		r += printf("%s", COLOR_RESET);
> > +	return r;
> > +}
> Hmm,... don't you mean RESET first and then trail (which is often "\n")?

ARGH. Yes, sorry about that. I wrote it correctly once, and then refactored it to be wrong. :)

> Please spell NULL not 0 (please do not argue that writing a NULL

Sorry, I should clearly go read the linux CodingStyle doc before subjecting you to any more of my patches.

I'm assuming you can mark both of those up yourself rather than having me resend?

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 9 of 10 in “git-commit.sh: convert run_status to a C builtin”
  1. 3/3 git-commit.sh: convert run_status to a C builtinJeff King, Sep 7, 2006
  2. Jeff KingSep 7, 2006
  3. Junio C HamanoSep 8, 2006
  4. Jeff KingSep 8, 2006
  5. Junio C HamanoSep 8, 2006
  6. Jeff KingSep 8, 2006
  7. Move color option parsing out of diff.c and into color.[ch]Jeff King, Sep 8, 2006
  8. Junio C HamanoSep 8, 2006
  9. Jeff KingSep 8, 2006
  10. Junio C HamanoSep 8, 2006

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.