Start working on pre-commit hook enforcement of atomic commits

This commit is contained in:
Benjamin Bädorf 2022-04-30 19:51:05 +02:00
parent 88ee3fe4c7
commit c4f722357a
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C

View file

@ -27,3 +27,39 @@ if [[ $? != '0' ]]; then
"Review the output and commit your fixes" >&2 "Review the output and commit your fixes" >&2
exit 1 exit 1
fi fi
PUBLIC_FILES=[
'modules/*'
'doc/*'
'hosts/bootstrap.nix'
'hosts/PubSolarOS.nix'
'iso/*'
'lib/*'
'overlays/*'
'pkgs/*'
'profiles/base-user/*'
'profiles/cachix/*'
'profiles/core/*'
'profiles/gaming/*'
'shell/*'
'users/modules/*'
'users/nixos/*'
'users/profiles/*'
'users/root/*'
'.drone/*'
'.github/*'
'.drone.yml'
'.editorconfig'
'.envrc'
'.gitignore'
'CHANGELOG.md'
'COPYING'
'default.nix'
'flake.nix'
'CHANGELOG.md'
'CHANGELOG.md'
'README.md'
'shell.nix'
]
public_files=($($diff -- 'modules/*'))
private_files=($($diff -- '*.nix'))