git/list[1] front-page[2] threads[3] people[4] search[5] about
 

does a stash *need* any reference to the branch on which it was created?

From
Robert P. J. Day <rpjday@crashcourse.ca>
Date
Jun 2, 2018, 19:28 UTC
Message-ID
<alpine.LFD.2.21.1806021525120.19865@localhost.localdomain>
  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 doesn't seem like it -- even "git stash branch" really only needs
the commit that was the basis of that stash to create the new branch.
  so, does any stash operation actually need the originating branch
name? (i'm guessing no, but i've been wrong before.)
rday
-- 
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
Next: Thomas Gummerer
Message 1 of 4 in “does a stash *need* any reference to the branch on which it was created?”
  1. Robert P. J. DayJun 2, 2018
  2. Thomas GummererJun 2, 2018
  3. Junio C HamanoJun 4, 2018
  4. Robert P. J. DayJun 4, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.