#!/bin/sh
set -e

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