blob: c1deea8911ea45d2316805488f92a700c55f4f6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
set -eu
[ -n "${DEBUG:-}" ] && set -x
case "${1:-status}" in
status)
exec git st
;;
commit)
shift
# prevent auto-commit of non-web files
if git ls-files -md | grep -qvE -e .htm$ -e .html$ -e .md$; then
exit 1
fi
git commit --all --trailer=Automated-commit-by:commitall --trailer=signoff --gpg-sign --message=* $*
echo
git log --stat --format=full -1
echo
;;
untracked)
shift
exec git ls-files -o $*
;;
esac
|