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

git log --author-date-order not always working

From
TMthomas menzel <dev@tomsit.de>
Date
Sep 3, 2018, 12:54 UTC
Message-ID
<2056463102.521974.1535979253941@email.1und1.de>
hi,
i just ran into this little possible bug but cant pin it down any further as it happens against a git repo for work project that i cant share.
when i run this git log against my repo i get this wrong sort order (1st col is authored date and 2nd is commit date):

$ git log --author=menzel --since=2018-08-10 --pretty=format:"%ad %cd %h" --date=short --author-date-order --until=2018-08-20 2018-08-20 2018-08-20 f2ff8245 2018-08-17 2018-08-17 d8afbdb7 2018-08-17 2018-08-17 853fdeca 2018-08-16 2018-08-20 7dd7b234 2018-08-16 2018-08-16 41fcb077 2018-08-16 2018-08-16 f081f38c 2018-08-15 2018-08-15 95466702 2018-08-15 2018-08-15 d8e6f91d 2018-08-15 2018-08-15 c1cd6e14 2018-08-15 2018-08-15 4bd06ba3 2018-08-14 2018-08-14 6876182b 2018-08-14 2018-08-17 6fb982ee 2018-08-17 2018-08-17 d2323219 2018-08-17 2018-08-17 b35793b4 2018-08-17 2018-08-17 ab784faf 2018-08-10 2018-08-10 9ede6a8d 2018-08-10 2018-08-10 e4959669 2018-08-16 2018-08-16 d146a71b 2018-08-15 2018-08-15 37396218 2018-08-15 2018-08-15 554042c5 2018-08-13 2018-08-13 39c80c8f

whereas this works:

$ git log --author=menzel --since=2018-08-10 --pretty=format:"%ad %cd %h" --date=short --author-date-order --until=2018-08-17 2018-08-17 2018-08-17 b35793b4 2018-08-17 2018-08-17 ab784faf 2018-08-16 2018-08-16 d146a71b 2018-08-16 2018-08-16 41fcb077 2018-08-16 2018-08-16 f081f38c 2018-08-15 2018-08-15 37396218 2018-08-15 2018-08-15 554042c5 2018-08-15 2018-08-15 95466702 2018-08-15 2018-08-15 d8e6f91d 2018-08-15 2018-08-15 c1cd6e14 2018-08-15 2018-08-15 4bd06ba3 2018-08-14 2018-08-14 6876182b 2018-08-13 2018-08-13 39c80c8f 2018-08-10 2018-08-10 9ede6a8d 2018-08-10 2018-08-10 e4959669

Note that the different location for the 2018-08-10 entries! The only difference is in the --until parameter.

It appears that after a certain commit date the ordering after the authored date gets broken. Any1 with a clue on what could be the cause?

Context
- same behavior for a colleague of mine
- we run on git version 2.16.2.windows.1 in git bash
cheers
tom
PS: i will try sometime later to check this repo with the latest linux version
Message 1 of 1 in “git log --author-date-order not always working”
  1. thomas menzelSep 3, 2018

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.