Re: approxidate woes

2018-11-15 Thread Jeff King
On Thu, Nov 15, 2018 at 09:48:54AM -0500, Jeff King wrote: > I don't think "48h" does what you expect either: > > $ t/helper/test-date approxidate now > now -> 2018-11-15 14:43:32 + > > $ t/helper/test-date approxidate 48h > 48h -> 2018-11-15 14:43:34 + > > $

Re: approxidate woes

2018-11-15 Thread Jeff King
On Thu, Nov 15, 2018 at 02:45:28PM +0100, Andreas Krey wrote: > 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. Yeah, it understands "2 days", but not "d" as a unit. I don't think "48h" does

approxidate woes

2018-11-15 Thread Andreas Krey
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