;just:format: be silent if there's no changes to commit
This commit is contained in:
parent
a59df34a5b
commit
63938f1da1
4
Justfile
4
Justfile
@ -59,9 +59,9 @@ alias h := help
|
|||||||
@check:
|
@check:
|
||||||
just --fmt --unstable --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:
|
@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
|
# rerun RECIPE when any watched-by-default file changes
|
||||||
watch RECIPE *JOPTS:
|
watch RECIPE *JOPTS:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user