From 827170985554cfd20544fb4fab5a124e69dfaafb Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 22 May 2010 13:03:58 +0200 Subject: [PATCH] new message format Signed-off-by: martin f. krafft --- fbi-announce.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fbi-announce.sh b/fbi-announce.sh index 577dead..c9ee6db 100755 --- a/fbi-announce.sh +++ b/fbi-announce.sh @@ -21,8 +21,8 @@ # hooks.fbi-refwidth the width of references to show (default 7) # hooks.fbi-noisy include the entire log message in the announcement # hooks.fbi-msg-template the template for the message to be sent (default: -# [@@component@@/]@@project@@: @@author@@: \ -# @@logmessage@@ [@@ref@@] @@url@@) +# {@@component@@/}@@project@@[@@ref@@]: @@author@@: \ +# @@logmessage@@ [@@url@@]) # # The hook is meant ot be run from the Git post-receive hook. # @@ -79,7 +79,7 @@ ts=$(date -d "@${ts}") msg=$(git config hooks.fbi-msg-template 2>/dev/null ||:) if [ -z "${msg}" ]; then - msg="${component:+$component/}${refname}: ${author}: ${logmessage} [${ref}] ${url}" + msg="${component:+$component/}${refname}[${ref}]: ${author}: ${logmessage} [${url}]" else msg=$(echo "$msg" | sed -re 's,@@([^@]+)@@,${\1},g') eval "msg=\"$msg\"" -- 2.39.5