summaryrefslogtreecommitdiff
path: root/hg/pre-commit.d/20warn-special-file
blob: d5d1d7f52c3fa9d712fdb8603078bce0de1ee2dd (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -e
special=$(find -not -type d -not -type f -not -type l | grep -v /.hg/) || true
if [ -n "$special" ]; then
	echo "etckeeper warning: special files could cause problems with mercurial:" >&2
	echo "$special" >&2
fi

true