Re: [PATCH 2/2] git-gc: skip stashes when expiring reflogs
- From
Nicolas Pitre <nico@cam.org>
- Date
- Jun 11, 2008, 23:21 UTC
- Message-ID
- <alpine.LFD.1.10.0806111918300.23110@xanadu.home>
- In-Reply-To
- <20080611230344.GD19474@sigill.intra.peff.net>
On Wed, 11 Jun 2008, Jeff King wrote:
Show 12 quoted lines
> I agree. If you are concerned about valuable stashes getting deleted, my > guess is one of: > > - you would like reflog expiration to be longer > > - you are using stash as a long-term storage, which it was never > intended for. Use a branch. > > The latter, of course, is based on my use and my impression of others > use (I almost always apply a stash within 30 seconds of having stashed > it). So maybe everyone is keeping stashes around for months, and this is > a useful change.
As you say, branches are there just for that: keeping changes for months. Stashes are not meant to be used like that nor should we encourage it.
Nicolas