File: 30git-add

package info (click to toggle)
etckeeper 1.15
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 412 kB
  • ctags: 41
  • sloc: sh: 1,072; python: 64; makefile: 58
file content (8 lines) | stat: -rwxr-xr-x 138 bytes parent folder | download | duplicates (8)
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