summaryrefslogtreecommitdiff
path: root/commit.d/30git-add
blob: b08b5838341d9fab06742422d3d0bbc22040fd45 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
set -e

if [ "$VCS" = git ] && [ -d .git ]; then
	if ! git add --all; then
		echo "etckeeper warning: git add --all" >&2
	fi
fi