Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
revert: rename variables related to subject in get_message()
[gitweb.git]
/
git-stash.sh
diff --git
a/git-stash.sh
b/git-stash.sh
index 59db3dc38e72fda88d521171a174c08b919677a9..0f858d334c756f9cd4028b4950a3912d0f6182dd 100755
(executable)
--- a/
git-stash.sh
+++ b/
git-stash.sh
@@
-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"
) ) ||