Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 2/2] git-gc: skip stashes when expiring reflogs

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:47

Johannes Schindelin [off-list ref] writes:
On Tue, 17 Jun 2008, Junio C Hamano wrote:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help