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

feature request: add [-n|--no-checkout] to git stash branch

From
CKColin Kennedy <colin@mrkennedy.ca>
Date
Jan 13, 2022, 18:28 UTC
Message-ID
<1f4e1634-a59d-4dc8-9863-90c525896e7c@www.fastmail.com>

Current syntax for stash branch is: branch <branchname> [<stash>] Proposed syntax: branch <branchname> [-n|--no-checkout] [<stash>]

This allows the stash command to more meaningfully place patches into "correct" working branches without users having to first clean up their working branch. It lowers friction on my own most common use-case for stash and stash branch - to sensibly park small pieces of WIP that I come across while working on something different.
I submitted another proposed flag on stash branch, and similar to last time I'm happy to take a crack at this if people think it's something that could be merged.

thanks, Colin

Message 1 of 1 in “feature request: add [-n|--no-checkout] to git stash branch”
  1. Colin KennedyJan 13, 2022

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.