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

Re: [PATCH] --pretty=format: print fewer <unknown>s

From
Jeff King <peff@peff.net>
Date
Mar 28, 2007, 22:17 UTC
Message-ID
<20070328221754.GB25430@coredump.intra.peff.net>
In-Reply-To
<7v3b3pf245.fsf@assigned-by-dhcp.cox.net>
On Wed, Mar 28, 2007 at 03:13:30PM -0700, Junio C Hamano wrote:
Show 6 quoted lines
> > This makes empty bodies truly empty, and fills in the
> > default UTF-8 encoding for an empty encoding.
> 
> I do not think the latter is correct.  Replacing with an empty
> string might make sense, although I haven't thought through the
> issues.

Fair enough. I originally put in an empty string, but tried to be (too) clever with UTF-8 (I was under the impression that commits without headers were assumed to be in UTF-8, unless there is some legacy override set). I'm fine with whatever makes sense, but I think printing <unknown> is silly: we _do_ know.

-Peff
Previous: Junio C Hamano
Message 3 of 3 in “--pretty=format: print fewer <unknown>s”
  1. --pretty=format: print fewer <unknown>sJeff King, Mar 28, 2007
  2. Junio C HamanoMar 28, 2007
  3. Jeff KingMar 28, 2007

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.