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

Re: 0-Based indexes for git log

From
�𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 <velocifyer@velocifyer.com>
Date
Sep 24, 2025, 17:15 UTC
Message-ID
<f1599790-b48c-4c37-8cf7-4756f5064d2e@velocifyer.com>
In-Reply-To
<fd7758e5-7719-4bed-b1b3-2137c49cc950@velocifyer.com>
Show 5 quoted lines
> In git log it uses a 1-based index for the date instead of a 0 based 
> index. So it says "Fri Sep 19 14:23:24 2025 -0400" when it should say 
> "Fri Sep 18 14:23:24 2025 -0400" (or "Friday 2025-8-18 14:23:24 
> (-4:00.00)"  to get a better format)
>

I suggest git adds a config option for 0-based date and automaticly uses 0-based date if there is a file at $HOME/use-0-based-index-for-date or $USE-0-BASED-INDEX-FOR-DATE == true

-- 
George truly, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
This email does not constitute a legally binding contract
Previous: Nico WilliamsNext: Emily Shaffer
Message 15 of 17 in “0-Based indexes for git log”
  1. 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣Sep 23, 2025
  2. Ben KnobleSep 24, 2025
  3. 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣Sep 24, 2025
  4. Ben KnobleSep 24, 2025
  5. Jeff KingSep 24, 2025
  6. 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣Sep 24, 2025
  7. Nico WilliamsSep 24, 2025
  8. Junio C HamanoSep 24, 2025
  9. 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣Sep 24, 2025
  10. Ben KnobleSep 24, 2025
  11. Patrick SteinhardtSep 25, 2025
  12. Junio C HamanoSep 25, 2025
  13. 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣Sep 24, 2025
  14. Nico WilliamsSep 24, 2025
  15. 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣Sep 24, 2025
  16. Emily ShafferSep 24, 2025
  17. 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣Sep 24, 2025

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.