diff options
author | tv <tv@krebsco.de> | 2022-03-18 16:01:57 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2022-03-18 16:15:22 +0100 |
commit | 6c826001614f78bac48d751a1c03c62bb98b8f05 (patch) | |
tree | 6fdd92110f39132c6c4547bee290b43fa55be5cd /krebs | |
parent | d51c1c93a07fbe41e8bbaedb2e4fb7ff39824c9d (diff) |
git-hooks irc-announce: add verbose blacklist
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/5pkgs/simple/git-hooks/default.nix | 7 |
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)')" \ |