aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-18 11:36:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-18 11:36:51 +0200
commit1c61b2d46b2d19db3251f7ca73e3621164a38ca4 (patch)
tree5d465b206ff1a34d5fc95c440e9c10da497d2424
parent8d1f0c71bd9e801faf123582821c2b88a9d45ddc (diff)
Use -A git add option to also remove files during commit
-rwxr-xr-xcommit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.sh b/commit.sh
index 6a0e401..464d82f 100755
--- a/commit.sh
+++ b/commit.sh
@@ -34,7 +34,7 @@ for i in $modules; do
echo "commit $i" 1>&2
cd $i
if [ "$add" = "y" ]; then
- git add .
+ git add -A .
if [ $? -ne 0 ]; then
echo "add FAILED" 1>&2