Re: does a stash *need* any reference to the branch on which it was created?
From: Junio C Hamano <hidden>
Date: 2018-06-04 03:04:41
2 messages, 2 authors, 2018-06-04 · open the first message on its own page
From: Junio C Hamano <hidden>
Date: 2018-06-04 03:04:41
"Robert P. J. Day" [off-list ref] writes:
i realize that, when you "git stash push", stash graciously saves the branch you were on as part of the commit message, but does any subsequent stash operation technically *need* that branch name?
It is not "saves", but "the message it automatically generates includes <branch> and <commit title> as a human readable reminder". "git stash" does not have to read that message, as it is not prepared to read and understand what you wrote after you ran your own "git stash push -m 'my random message'" anyway. It is merely for your consumption, especially when it appears in "git stash list".
From: Robert P. J. Day <hidden>
Date: 2018-06-04 10:13:16
On Mon, 4 Jun 2018, Junio C Hamano wrote:
"Robert P. J. Day" [off-list ref] writes:quoted
i realize that, when you "git stash push", stash graciously saves the branch you were on as part of the commit message, but does any subsequent stash operation technically *need* that branch name?It is not "saves", but "the message it automatically generates includes <branch> and <commit title> as a human readable reminder".
sorry, poor choice of words (particularly embarrassing as i'm such a stickler for wording :-P)
"git stash" does not have to read that message, as it is not prepared to read and understand what you wrote after you ran your own "git stash push -m 'my random message'" anyway. It is merely for your consumption, especially when it appears in "git stash list".
right, that's what i wanted to confirm, thanks.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca/dokuwiki
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================