git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* approxidate woes
@ 2018-11-15 13:45 Andreas Krey
  2018-11-15 14:48 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Krey @ 2018-11-15 13:45 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-15 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-15 13:45 approxidate woes Andreas Krey
2018-11-15 14:48 ` Jeff King
2018-11-15 14:54   ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).