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

[BUG REPORT] Git log pretty date

From
Rodrigo Fernandes <rtfrodrigo@gmail.com>
Date
May 29, 2014, 10:29 UTC
Message-ID
<CACJZPBtv-Cpb8_WZMz9Hsk9MrC86YGfbvREt6G=QKvMBjrqsEg@mail.gmail.com>
Hi,
I'm having some problems with the `git log` command.

Setup: Happens in multiple versions, tested on 1.8.* and 2.*

The problem happens when I try to get a pretty log for a commit with a wrong date.

Executing the command: `git log --encoding=UTF-8 --date=raw --pretty=format:'%H,%P,%ad,%cd,%an,%s'`

I get an empty response on the date field, but since pretty has `%ad` it should follow the --date and return the date even if wrong.

The problem happens in this repo: `https://github.com/SamWM/jQuery-Plugins` on commit `e9dddaf24c9de45d9b4efdf38eff7c30eb200f48`.

I posted it on SO too: `http://stackoverflow.com/questions/23793188/find-date-for-not-dated-commit`

I think it is a bug probably on pretty since other raw formats show the date as it should.

I tried to check the source code but have no idea where to start, maybe if you point me on some direction I can take a look for my self.

Can you help?

Kind regards, Rodrigo Fernandes

Next: Duy Nguyen
Message 1 of 13 in “[BUG REPORT] Git log pretty date”
  1. Rodrigo FernandesMay 29, 2014
  2. Duy NguyenMay 29, 2014
  3. Jeff KingMay 29, 2014
  4. Junio C HamanoMay 29, 2014
  5. Jeff KingMay 29, 2014
  6. Rodrigo FernandesMay 29, 2014
  7. Rodrigo FernandesMay 30, 2014
  8. Jeff KingJun 3, 2014
  9. Dennis KaarsemakerJun 3, 2014
  10. Jeff KingJun 3, 2014
  11. Dennis KaarsemakerMay 29, 2014
  12. Rodrigo FernandesMay 29, 2014
  13. Duy NguyenMay 29, 2014

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.