Documentation: remove stray backslash in show-branch discussion
[gitweb.git] / git-stash.sh
index 908aab2659ca5d66d8091e474c484dd8d9b88c0c..1d95447d03f342811dd77386f2e83d0814beabf2 100755 (executable)
@@ -86,7 +86,7 @@ create_stash () {
                        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"
                ) ) ||