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

[PATCH 0/1] stash apply: be prepared to run in a worktree's subdirectory

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Sep 25, 2019, 12:45 UTC
Message-ID
<pull.354.git.gitgitgadget@gmail.com>

I saw this issue a couple times in my setup, and always wondered why nobody else seemed to be hit by this. When I finally found/made some time to investigate, I found out that it really requires a specific setup: I have many worktrees connected to my main git.git clone, often run inside t/ and I do stash quite often (now that git stash's performance is a joy on Windows).

Johannes Schindelin (1):
  stash apply: report status correctly even in a worktree's subdirectory
 builtin/stash.c              |  2 ++
 t/t3908-stash-in-worktree.sh | 27 +++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)
 create mode 100755 t/t3908-stash-in-worktree.sh
base-commit: 4c86140027f4a0d2caaa3ab4bd8bfc5ce3c11c8a
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-354%2Fdscho%2Fapply-stash-in-subdirectory-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-354/dscho/apply-stash-in-subdirectory-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/354
-- 
gitgitgadget
Next: Johannes Schindelin via GitGitGadget
Message 1 of 6 in “stash apply: be prepared to run in a worktree's subdirectory”
  1. 0/1 stash apply: be prepared to run in a worktree's subdirectoryJohannes Schindelin via GitGitGadget, Sep 25, 2019
  2. 1/1 stash apply: report status correctly even in a worktree's subdirectoryJohannes Schindelin via GitGitGadget, Sep 25, 2019
  3. Junio C HamanoOct 3, 2019
  4. Johannes SchindelinOct 4, 2019
  5. 0/1 stash apply: be prepared to run in a worktree's subdirectoryJohannes Schindelin via GitGitGadget, Oct 4, 2019
  6. 1/1 stash apply: report status correctly even in a worktree's subdirectoryJohannes Schindelin via GitGitGadget, Oct 4, 2019

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.