Skip to content

Safety for "stash save"

Junio C Hamano git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2treat_directory(): do not declare submodules to be untrackeddir.c t/t3010-ls-files-killed-modified.sh+21 -60 replies
2/2git stash: avoid data loss when "git stash save" kills a directoryDocumentation/git-stash.txt git-stash.sh t/t3903-stash.sh+40 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Safety for "stash save"

The second patch is the real thing, but "ls-files --killed" needed to be taught about submodules to avoid breaking "stash save" in a repository with submodules, as the new safety uses it to detect what will need to be killed (i.e. file D/F in the working tree getting removed because we need to check out D as a file, or file D in the working tree getting removed because we need to check out D/F as a file) when reverting to the state in HEAD.

Junio C Hamano (1):
treat_directory(): do not declare submodules to be untracked

Petr Baudis (1):
git stash: avoid data loss when "git stash save" kills a directory

 Documentation/git-stash.txt         | 12 ++++++++++--
 dir.c                               |  4 +---
 git-stash.sh                        | 12 ++++++++++++
 t/t3010-ls-files-killed-modified.sh | 23 ++++++++++++++++++++---
 t/t3903-stash.sh                    | 18 ++++++++++++++++++
 5 files changed, 61 insertions(+), 8 deletions(-)
Signature · 1 line
1.8.3.2-798-g923e168