Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/commitpkg.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/commitpkg.in')
-rw-r--r--src/commitpkg.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/commitpkg.in b/src/commitpkg.in
index 9186378..59471bf 100644
--- a/src/commitpkg.in
+++ b/src/commitpkg.in
@@ -160,6 +160,15 @@ if [[ -z $server ]]; then
fi
if [[ -n $(git status --short --untracked-files=no) ]]; then
+ stat_busy 'Staging files'
+ for f in $(git ls-files --modified); do
+ git add "$f"
+ done
+ for f in $(git ls-files --deleted); do
+ git rm "$f"
+ done
+ stat_done
+
msgtemplate="upgpkg: $pkgbase $(get_full_version)"
if [[ -n $1 ]]; then
stat_busy 'Committing changes'