From: Johannes Schindelin Date: Tue, 17 Jun 2008 09:05:24 GMT Subject: Re: [PATCH 2/2] git-gc: skip stashes when expiring reflogs Message-ID: In-Reply-To: <7vy755c0b2.fsf@gitster.siamese.dyndns.org> Hi, On Mon, 16 Jun 2008, Junio C Hamano wrote: > From: Junio C Hamano > Date: Sun, 15 Jun 2008 23:48:46 -0700 > Subject: [PATCH] Per-ref reflog expiry configuration > > In addition to gc.reflogexpireunreachable and gc.reflogexpire, this lets > you set gc..reflogexpireunreachable and gc..reflogexpire > variables. > > When "git reflog expire" expires reflog entry for $ref, the expiry timers > are taken from the first that matches $ref (and if there isn't > the global default value is used). > > For example, you could: > > [gc "refs/stash"] > reflogexpire = never > reflogexpireunreachable = never > > [gc "refs/remotes/*"] > reflogexpire = 7 days > reflogexpireunreachable = 3 days > > [gc] > reflogexpire = 90 days > reflogexpireunreachable = 30 days Isn't this overkill? I mean, we could just change git-stash to output a warning: Note: your changes have been stored temporarily. If you need to keep them permanently, consider putting them into a branch: git branch stashed-longer stash Don't get me wrong: I think per-ref reflog expiry is nifty, but it may be _too_ nifty, i.e. so complicated only power-users will use it. Ciao, Dscho