diff --git a/post-commit b/post-commit index bd44cfa..6e1d4ba 100755 --- a/post-commit +++ b/post-commit @@ -38,3 +38,5 @@ for fn in "${ADDED_FILES[@]}"; do # Uncomment sed command to replace multiple empty lines with a single empty line # sed '/^$/N;/^\n$/D' "$fn" # GNU sed compatible only done + +git add "${ADDED_FILES[@]}" && git commit --amend --reuse-message="HEAD"