0x1eef
ea06f0dfbc
A modified copy of portzap repurposed for management of the hardenedbsd source tree.
22 lines
318 B
Bash
22 lines
318 B
Bash
#!/bin/sh -e
|
|
|
|
##
|
|
# 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"
|