From c6dfb204306a896d15e1232536254b677fde1810 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 30 Nov 2026 05:28:56 -0500 Subject: hooks/pre-commit: commentary. --- hooks/pre-commit | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hooks/pre-commit b/hooks/pre-commit index 4cd7aa1..045b2b8 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -4,6 +4,9 @@ # 20260919 bkw: no code changes; update install comments. # 20261130 bkw: add check for md5sums in the .info file. +# TODO: +# - rewrite in perl. + # Installation: # This file is part of sbo-maintainer-tools, which you can get @@ -102,9 +105,13 @@ EOF fi } +# Note to self: Don't get tempted to add too many checks here. Anything +# that could possibly be checked by sbolint, should be. The md5sum +# check can't go in sbolint because it has to be able to look back in +# the git history. + # The fugly grep regex below matches only the actual .info files, named # category/prgnam/prgnam.info (and not other files named .info). - if [ "${MD5OK:-no}" != "yes" ]; then while read filename; do check_info_file "$filename" -- cgit v1.2.3