diff options
| author | Ben Sima <ben@bsima.me> | 2025-09-05 14:15:52 -0400 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-09-05 14:19:57 -0400 |
| commit | 7a4184e9367df0010140134c646121b84c7c4731 (patch) | |
| tree | cadb53e076be380f745959473b02d464d1ee67ba /Omni/Ide | |
| parent | dffdcc53103f429509f5ac7d3520694c4f66008f (diff) | |
Fix fmt spacing
The -s and -u flags tell fmt to fill the paragraph by merging
lines. Without this, fmt might just add line breaks, and this is
no good.
Diffstat (limited to 'Omni/Ide')
| -rwxr-xr-x | Omni/Ide/hooks/commit-msg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Omni/Ide/hooks/commit-msg b/Omni/Ide/hooks/commit-msg index d77ec84..c15b4a1 100755 --- a/Omni/Ide/hooks/commit-msg +++ b/Omni/Ide/hooks/commit-msg @@ -1,6 +1,6 @@ #!/usr/bin/env bash temp=$(mktemp) -fmt -w 72 -s "$1" > "$temp" +fmt -w 72 -u "$1" > "$temp" mv "$temp" "$1" if ! gitlint --ignore-stdin --staged --msg-filename "$1" run-hook; then backup="$CODEROOT"/.git/COMMIT_EDITMSG.backup |
