Update 2024-12-26 17:21 OpenBSD/amd64-t14
This commit is contained in:
@@ -133,27 +133,6 @@ then
|
||||
vimdiff "$_dir/$f" "${_dir%$_env}$2/$f"
|
||||
fi
|
||||
|
||||
if [ "$_action" == "diffdir" ]
|
||||
then
|
||||
if test -z "$1" || test -z "$2"
|
||||
then
|
||||
echo "args: <commits> <env>"
|
||||
exit 1
|
||||
fi
|
||||
flist="$(git --no-pager whatchanged \
|
||||
--oneline \
|
||||
--pretty=format:'' ...HEAD~$1 \
|
||||
| cut -d"M" -f2- \
|
||||
| sort -u \
|
||||
| xargs)"
|
||||
for file in $flist
|
||||
do
|
||||
f="$(readlink -f $_oldpwd/$file)"
|
||||
f="${file#$_dir}"
|
||||
vimdiff "$_dir/$f" "${_dir%$_env}$2/$f"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ "$_action" == "pr" ]
|
||||
then
|
||||
if [ -n "$1" ]
|
||||
|
||||
Reference in New Issue
Block a user