summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/git-hooks
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-03-18 16:01:57 +0100
committertv <tv@krebsco.de>2022-03-18 16:15:22 +0100
commit6c826001614f78bac48d751a1c03c62bb98b8f05 (patch)
tree6fdd92110f39132c6c4547bee290b43fa55be5cd /krebs/5pkgs/simple/git-hooks
parentd51c1c93a07fbe41e8bbaedb2e4fb7ff39824c9d (diff)
git-hooks irc-announce: add verbose blacklist
Diffstat (limited to 'krebs/5pkgs/simple/git-hooks')
-rw-r--r--krebs/5pkgs/simple/git-hooks/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/krebs/5pkgs/simple/git-hooks/default.nix b/krebs/5pkgs/simple/git-hooks/default.nix
index c9dcc7541..13fe7aa67 100644
--- a/krebs/5pkgs/simple/git-hooks/default.nix
+++ b/krebs/5pkgs/simple/git-hooks/default.nix
@@ -96,7 +96,12 @@ with stockholm.lib;
#$host $GIT_SSH_REPO $ref $link
add_message $(pink push) $link $(gray "($receive_mode)")
- ${optionalString verbose /* sh */ ''
+ ${optionalString (verbose == false || typeOf verbose == "set") /* sh */ ''
+ ${optionalString (verbose.exclude or [] != []) /* sh */ ''
+ case $ref in (${concatStringsSep "|" verbose.exclude})
+ continue
+ esac
+ ''}
add_message "$(
git log \
--format="$(orange %h) %s $(gray '(%ar)')" \