Re: [PATCH 2/2] git-gc: skip stashes when expiring reflogs
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 12 quoted lines
> 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.