diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-01-17 14:49:30 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-17 14:49:30 -0800 |
commit | 12361d025fe0752342dabb06d79ff541eb081002 (patch) | |
tree | 1e21891f5db927b2bc7293cd81d003d8c03f0292 /git-stash.sh | |
parent | Merge branch 'jk/http-walker-limit-redirect' into maint (diff) | |
parent | stash: prefer plumbing over git-diff (diff) | |
download | tgif-12361d025fe0752342dabb06d79ff541eb081002.tar.xz |
Merge branch 'jk/stash-disable-renames-internally' into maint
When diff.renames configuration is on (and with Git 2.9 and later,
it is enabled by default, which made it worse), "git stash"
misbehaved if a file is removed and another file with a very
similar content is added.
* jk/stash-disable-renames-internally:
stash: prefer plumbing over git-diff
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-x | git-stash.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-stash.sh b/git-stash.sh index 4546abaaef..10c284d1aa 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -115,7 +115,7 @@ create_stash () { git read-tree --index-output="$TMPindex" -m $i_tree && GIT_INDEX_FILE="$TMPindex" && export GIT_INDEX_FILE && - git diff --name-only -z HEAD -- >"$TMP-stagenames" && + git diff-index --name-only -z HEAD -- >"$TMP-stagenames" && git update-index -z --add --remove --stdin <"$TMP-stagenames" && git write-tree && rm -f "$TMPindex" |