2021-03-30 16:07:58 +00:00
|
|
|
#!/bin/sh
|
2021-04-19 08:39:08 +00:00
|
|
|
if test "$#" -gt 0
|
|
|
|
then
|
|
|
|
dif "$(st-unarchive "$1")" "$@"
|
|
|
|
test "$?" -eq "2" && exit 1
|
|
|
|
echo "y|r to restore, n|d to delete"
|
|
|
|
read reply
|
|
|
|
case "$reply" in
|
|
|
|
(y|r) st-restore "$1";;
|
|
|
|
(n|d) rm -v "$1";;
|
|
|
|
esac
|
|
|
|
else find -name '*sync-conflict*' -exec st-diff '{}' \;
|
|
|
|
fi
|