Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions post-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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"