summaryrefslogtreecommitdiff
path: root/t/t4121-apply-diffs.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2007-07-27 23:41:31 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-07-28 00:06:00 -0700
commitcbeaccc316affa2e0fb0b60f569d5da9bf444881 (patch)
treeba4eed2d1041ea5225b38ca3914e545f6d4c55da /t/t4121-apply-diffs.sh
parentgit-stash: Make sure reflog is created for refs/stash (diff)
downloadtgif-cbeaccc316affa2e0fb0b60f569d5da9bf444881.tar.xz
Fix git-stash apply --index
Two bugs that made the command practically unusable were fixed with this. - A stash created with a clean index does not have any difference between the base tree and the index tree. Trying to apply the diff between them to the index would error out with "No changes". Even when the user asked to unstash with --index, do not bother with --index action if the base tree and the index tree match. - After successfully performing the working tree merge, the index was reloaded from an earlier state of unstashed index with "read-tree"; this left all the paths cache dirty. By moving the call to git-status after this read-tree, match the cached stat information in the index. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4121-apply-diffs.sh')
0 files changed, 0 insertions, 0 deletions