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

Bug report: %h for abbreviated hashes broken after 1.7.1

From
TJTodd A. Jacobs <tjacobs@si2services.com>
Date
Aug 25, 2010, 02:54 UTC
Message-ID
<AANLkTinR6_DFD_MbFRbtyJKPhZG1Os0ro=4TcC2h_xZo@mail.gmail.com>
I have the following string in a file:
    $Format:Git ID: (%h) %ci$
which is being expanded by git-archive. In git 1.7.1, this properly expands to:
    Git ID: (58b31cf) 2010-08-24 14:00:00 -0400
but in 1.7.1.1 and 1.7.2.2 I am getting:
    Git ID: (58b31cf99592ca39b1d6b0f08f71674a7ed0ffbd) 2010-08-24 14:00:00 -0400
Checking 'man git-log' still says:
    %h: abbreviated commit hash

so this seems to be some sort of regression in how pretty formats are being expanded. It looks like commit 35039ced9296786bc0971bf5385c0d6f6ea5ea1e was supposed to fix this, but it apparently still isn't working in the latest tarballs available on kernel.org.

Can someone please look into this?
Next: Jonathan Nieder
Message 1 of 8 in “Bug report: %h for abbreviated hashes broken after 1.7.1”
  1. Todd A. JacobsAug 25, 2010
  2. Jonathan NiederAug 25, 2010
  3. Todd A. JacobsAug 25, 2010
  4. Björn SteinbrinkAug 25, 2010
  5. Jonathan NiederAug 25, 2010
  6. Todd A. JacobsAug 25, 2010
  7. Marcus ComstedtAug 25, 2010
  8. Todd ZullingerAug 25, 2010

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.