summaryrefslogtreecommitdiffstats
path: root/tv/4lib/git.nix
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-09-28 01:18:44 +0200
committertv <tv@shackspace.de>2015-09-28 01:18:44 +0200
commitffa024c95025862d4498faed453ae34ca02b7582 (patch)
tree370c98c95c807d966e72548215f2f90ea66348c5 /tv/4lib/git.nix
parentce731718eda4266bf09d45434d98418f5efd195a (diff)
irc-announce: omit $GIT_SSH_USER
Diffstat (limited to 'tv/4lib/git.nix')
-rw-r--r--tv/4lib/git.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/tv/4lib/git.nix b/tv/4lib/git.nix
index 6f3654356..f99bcc967 100644
--- a/tv/4lib/git.nix
+++ b/tv/4lib/git.nix
@@ -114,6 +114,12 @@ let
gnused
])}
+ green() { printf '\x0303,99%s\x0F' "$1"; }
+ red() { printf '\x0304,99%s\x0F' "$1"; }
+ orange() { printf '\x0307,99%s\x0F' "$1"; }
+ pink() { printf '\x0313,99%s\x0F' "$1"; }
+ gray() { printf '\x0314,99%s\x0F' "$1"; }
+
nick=${escapeShellArg nick}
channel=${escapeShellArg channel}
server=${escapeShellArg server}
@@ -163,15 +169,10 @@ let
#$host $GIT_SSH_REPO $ref $link
message="''${message+$message
- }$GIT_SSH_USER $receive_mode $link"
+ }$(pink push) $link $(gray "($receive_mode)")"
message=''${message+$message
}$(
- green() { printf '\x0303,99%s\x0F' "$1"; }
- red() { printf '\x0304,99%s\x0F' "$1"; }
- orange() { printf '\x0307,99%s\x0F' "$1"; }
- gray() { printf '\x0314,99%s\x0F' "$1"; }
-
git log \
--format="$(orange %h) %s $(gray '(%ar)')" \
--reverse \