File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -28,20 +28,19 @@ allow_trivial_merge=t
28
28
29
29
dropsave () {
30
30
rm -f -- " $GIT_DIR /MERGE_HEAD" " $GIT_DIR /MERGE_MSG" \
31
- " $GIT_DIR /MERGE_SAVE " || exit 1
31
+ " $GIT_DIR /MERGE_STASH " || exit 1
32
32
}
33
33
34
34
savestate () {
35
35
# Stash away any local modifications.
36
- git diff-index -z --name-only $head |
37
- cpio -0 -o > " $GIT_DIR /MERGE_SAVE"
36
+ git stash create > " $GIT_DIR /MERGE_STASH"
38
37
}
39
38
40
39
restorestate () {
41
- if test -f " $GIT_DIR /MERGE_SAVE "
40
+ if test -f " $GIT_DIR /MERGE_STASH "
42
41
then
43
42
git reset --hard $head > /dev/null
44
- cpio -iuv < " $GIT_DIR /MERGE_SAVE "
43
+ git stash apply $( cat " $GIT_DIR /MERGE_STASH " )
45
44
git update-index --refresh > /dev/null
46
45
fi
47
46
}
@@ -386,7 +385,7 @@ case "$use_strategies" in
386
385
single_strategy=no
387
386
;;
388
387
* )
389
- rm -f " $GIT_DIR /MERGE_SAVE "
388
+ rm -f " $GIT_DIR /MERGE_STASH "
390
389
single_strategy=yes
391
390
;;
392
391
esac
You can’t perform that action at this time.
0 commit comments