Add git hook for package comparison

When moving to commit, this hook will automatically fire and check the
current system's installed packages against those explicitly committed
to the repository. If they mismatch it will inform the user.

It will not prevent the commit, but simply add a comment at the top of
the commit messages to remind the user that something is unbalanced
between both. It would be recommended to either check the additional
package into source control, remove it from the current system, or
explicitly add it to ignored packages.
This commit is contained in:
Marty Oehme 2020-02-07 22:31:41 +01:00
parent c7ed986c0e
commit ecbf8409f9
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
4 changed files with 76 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# TODO find a more generic way to express 'ignore any non-folder files'
^/install_packages.sh
^/packages.csv
^/packages.*.txt