Re: [PATCH 2/2] git-gc: skip stashes when expiring reflogs
- From
Jeff King <peff@peff.net>
- Date
- Jun 11, 2008, 23:03 UTC
- Message-ID
- <20080611230344.GD19474@sigill.intra.peff.net>
- In-Reply-To
- <alpine.DEB.1.00.0806112242370.1783@racer>
On Wed, Jun 11, 2008 at 10:44:17PM +0100, Johannes Schindelin wrote:
> FWIW I thought it was one of the clever designs of git-stash that it > automatically expires together with the other reflogs. A stash is only a > temporary thing, that is not even meant to leave the local repository, > after all.
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.
-Peff