diff options
author | Joey Hess <joey@kitenet.net> | 2011-11-25 19:10:16 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-11-25 19:10:16 -0400 |
commit | b157bb239385be4ea2883c1419be98af51ff5dfd (patch) | |
tree | 5caafa347434ee010218d51c63e7374a3aa630bb /commit.d | |
parent | 72fc4fc6977e1642df5246ea80b69dbcdd3206d4 (diff) | |
parent | f8ccc8f93ecaacb7db2633319d15cc5441fa7bad (diff) |
Use git add -A, which automatically removes deleted files, and avoids a separate call to git add -u. Thanks to Miklos Vajna, whose patch in 2008 was deferred because -A was then too new, and languished in a branch until found today.
Diffstat (limited to 'commit.d')
-rwxr-xr-x | commit.d/30git-add | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commit.d/30git-add b/commit.d/30git-add index 66d96a9..b08b583 100755 --- a/commit.d/30git-add +++ b/commit.d/30git-add @@ -2,7 +2,7 @@ set -e if [ "$VCS" = git ] && [ -d .git ]; then - if ! git add .; then - echo "etckeeper warning: git add failed" >&2 + if ! git add --all; then + echo "etckeeper warning: git add --all" >&2 fi fi |