From: Junio C Hamano Date: Wed, 18 Jun 2008 18:58:29 GMT Subject: Re: [PATCH 2/2] git-gc: skip stashes when expiring reflogs Message-ID: <7v4p7qzi22.fsf@gitster.siamese.dyndns.org> In-Reply-To: Johannes Schindelin writes: > On Tue, 17 Jun 2008, Junio C Hamano wrote: > >> Of course, >> >> $ git stash apply stashed-longer >> >> would work but that is by accident, as at that point what you are feeding >> "git stash" command is not really a name of a ref that is a stash. > > It would not be by accident. It would work because we designed git-stash > to use refs to store working-directory vs index changes, and this command > line you wrote was _exactly_ what I intended. Well, it is. For normal stash oriented operations such as $ git stash list stashed-longer $ git stash apply stashed-longer@{22} won't work on them. Only the quoted form works and that _is_ by accident.