From: Junio C Hamano Date: Mon, 01 Jul 2013 21:59:09 GMT Subject: [PATCH v2 0/2] Safety for "stash save" Message-ID: <1372715951-3224-1-git-send-email-gitster@pobox.com> In-Reply-To: <20130628150532.GD12252@machine.or.cz> 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(-) -- 1.8.3.2-798-g923e168