chiark / gitweb /
Fix: Also add new files in app metadata dirs (e.g. new patches)
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 11 Jan 2014 11:40:36 +0000 (12:40 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 11 Jan 2014 11:40:36 +0000 (12:40 +0100)
fd-commit

index be62a049707d3e4c6e9eb66be1adfa20d529f3e5..385fcbf21f38c88ab7ad69848307ed8f0774a531 100755 (executable)
--- a/fd-commit
+++ b/fd-commit
@@ -78,7 +78,7 @@ while read line; do
                fi
 
                message=${message//\"/\\\"}
-               commands+=("git commit -m \"$message\" -e -v -- $file $extra")
+               commands+=("git add -- $file $extra && git commit -m \"$message\" -e -v")
        fi
 done < <(git status --porcelain)