mergetool: Fix abort command when resolving symlinks and deleted files
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
@ -71,13 +71,13 @@ resolve_symlink_merge () {
|
|||||||
cleanup_temp_files --save-backup
|
cleanup_temp_files --save-backup
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
[rR]*)
|
[rR]*)
|
||||||
git-checkout-index -f --stage=3 -- "$path"
|
git-checkout-index -f --stage=3 -- "$path"
|
||||||
git-add -- "$path"
|
git-add -- "$path"
|
||||||
cleanup_temp_files --save-backup
|
cleanup_temp_files --save-backup
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
[qQ]*)
|
[aA]*)
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -94,12 +94,12 @@ resolve_deleted_merge () {
|
|||||||
cleanup_temp_files --save-backup
|
cleanup_temp_files --save-backup
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
[dD]*)
|
[dD]*)
|
||||||
git-rm -- "$path"
|
git-rm -- "$path"
|
||||||
cleanup_temp_files
|
cleanup_temp_files
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
[qQ]*)
|
[aA]*)
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Reference in New Issue
Block a user