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

Format for %d includes unwanted preceding space

From
RHRavi (Tom) Hale <ravi@hale.ee>
Date
Oct 6, 2016, 09:22 UTC
Message-ID
<a3eed8fb-505c-e9c1-6fb6-944d9df2f15d@hale.ee>
The log --format="%d" includes preceding space:

$ git log -n1 --format="XX%dXX" HEAD XX (HEAD -> master)XX

I know of no other %<token> that is output in this way.

Is there a way of removing this preceding space through the format string, or will it need to be a code change?

-- 
Tom Hale
Next: Junio C Hamano
Message 1 of 2 in “Format for %d includes unwanted preceding space”
  1. Ravi (Tom) HaleOct 6, 2016
  2. Junio C HamanoOct 6, 2016

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.