WIP: pre-commit hook for enforcement of atomic commits #84

Closed
teutat3s wants to merge 1 commit from feature/atomic-pre-commit into main

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'))