2024-05-11 21:43:59 +02:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2024-05-11 21:03:00 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# variables
|
|
|
|
localbase=${LOCALBASE:-/usr/local}
|
|
|
|
git="${localbase}"/bin/git
|
|
|
|
gitdir=$1
|
|
|
|
commit=$2
|
|
|
|
mode=u=rwX,g=rX,o=
|
|
|
|
|
|
|
|
##
|
|
|
|
# functions
|
|
|
|
gitexec()
|
|
|
|
{
|
|
|
|
doas -n -u _srczap \
|
|
|
|
/bin/sh -c "umask ${mode}; ${git} ${1}"
|
|
|
|
}
|
|
|
|
|
|
|
|
##
|
|
|
|
# main
|
|
|
|
cd "${gitdir}"
|
|
|
|
gitexec "diff --name-only --diff-filter=D ${commit} HEAD"
|