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

git stash and --skip-worktree files

From
MKMick Killianey <mkillianey@guidewire.com>
Date
Feb 14, 2014, 01:59 UTC
Message-ID
<8D4386EEB9152247A45EC47A89E64C554D2ED6F3@sm-ex-01-vm.guidewire.com>
My team is starting to use the --skip-worktree flag on files to allow them to keep modified files in their working directories.  Ideally, they'd like an option for "git-stash" to apply to skip-worktree files, just as it can (optionally) be applied to untracked files, so that skip-worktree files could be included when saving and restored (ideally, with the skip-worktree bit set) on a git-stash pop.

(1) I don't see an option for "git-stash" to support skip-worktree files...is it there and I'm just not seeing it? (2) Does anyone know if there's a reason why this is not possible/unreasonable to support/philosophically discouraged? (3) If it is reasonable, where would the right place be to suggest/request this feature?

I'm happy to look at making such changes to git-stash.sh, but before I do so, I'd love to know that such work would be aligned with the design philosophy of git-stash.  (For example, if the git team would only want such an option if it also included the ability to stash assume-unchanged files, too, that would be useful to know before I start making changes.)
Mick
Message 1 of 1 in “git stash and --skip-worktree files”
  1. Mick KillianeyFeb 14, 2014

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.