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

Re: 0-Based indexes for git log

From
NWNico Williams <nico@cryptonector.com>
Date
Sep 24, 2025, 17:04 UTC
Message-ID
<aNQkrF1k4ZCj4h9Q@ubby>
In-Reply-To
<75860b99-b7b5-4398-b32f-47a4873508aa@velocifyer.com>
On Wed, Sep 24, 2025 at 01:01:30PM -0400, π•π•–π•π• π•”π•šπ•—π•ͺ𝕖𝕣 wrote:
> > Day of month numbers are 1-based.
> 
> I consider day of month to use a 0-based index

The rest of the world does not. You want to be able to interoperate with the rest of the world. So day of month numbers are 1-based. I also wish everything were 0-based, but it's not. That's just life.

Previous: π•π•–π•π• π•”π•šπ•—π•ͺ𝕖𝕣Next: π•π•–π•π• π•”π•šπ•—π•ͺ𝕖𝕣
Message 14 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.