diff --git a/git-stash.sh b/git-stash.sh
index 908aab2659ca5d66d8091e474c484dd8d9b88c0c..1d95447d03f342811dd77386f2e83d0814beabf2 100755 (executable)
--- a/git-stash.sh
+++ b/git-stash.sh
GIT_INDEX_FILE="$TMP-index" &&
export GIT_INDEX_FILE &&
git read-tree -m $i_tree &&
- git add -u &&
+ git diff --name-only -z HEAD | git update-index -z --add --remove --stdin &&
git write-tree &&
rm -f "$TMP-index"
) ) ||