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

approxidate woes

From
Andreas Krey <a.krey@gmx.de>
Date
Nov 15, 2018, 13:45 UTC
Message-ID
<20181115134528.GA21242@inner.h.apk.li>
Hi everybody,
I've now located why our backup repo shrinks every month:
  git gc --prune=2d
doesn't do what I expected, and differs a lot from --prune=48h.

The latter actually means 'older than two days', while the former is 'since the second day of this month, same time as now'.

Even '2d ago' does not help - '2 days ago' does.

Mildly irritating, and worse, hard to find in the documentation. I failed at the latter and fell back to the sources, finding './bin-wrappers/test-date approxidate' for trying.

Where would I look?
- Andreas
-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800
Next: Jeff King
Message 1 of 3 in “approxidate woes”
  1. Andreas KreyNov 15, 2018
  2. Jeff KingNov 15, 2018
  3. Jeff KingNov 15, 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.