Skip to content

Commit

Permalink
;just:format: be silent if there's no changes to commit
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Mar 2, 2024
1 parent a59df34 commit 63938f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Justfile
Expand Up @@ -59,9 +59,9 @@ alias h := help
@check:
just --fmt --unstable --check

# if this justfile is error free but in non-standard format, reformat and commit it
# if this justfile is error free but in non-standard format, reformat it, and if it has changes, commit it
@format:
just -q chk || just --fmt --unstable && git commit -m ';just: format' -- {{ justfile() }}
just -q chk || just -q --fmt --unstable && git diff --quiet || git commit -m ';just: format' -- {{ justfile() }}

# rerun RECIPE when any watched-by-default file changes
watch RECIPE *JOPTS:
Expand Down

0 comments on commit 63938f1

Please sign in to comment.