[Libreoffice-commits] dev-tools.git: git-hooks/core.git

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Mar 22 08:23:40 UTC 2019


 git-hooks/core.git/hooks/update |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e5580155e0758649dcba2e4ae8d88e005ef783cc
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Fri Mar 22 09:18:35 2019 +0100
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Mar 22 09:23:22 2019 +0100

    git-hooks, core: mention author names in From field again
    
    See ESC minutes at <https://www.mail-archive.com/search?l=mid&q=20190321154353.GO17807@collabora.com>.
    
    Technically the sender is still the same, but the real name of the
    author of the first patch is now visible for faster overview. This is
    what gerrit did for a long time already.
    
    Change-Id: I4618cfb6cb2a4819445ab3d284cd9b5e0b034e22
    Reviewed-on: https://gerrit.libreoffice.org/69546
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
    Tested-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/git-hooks/core.git/hooks/update b/git-hooks/core.git/hooks/update
index 395ed17..01434af 100755
--- a/git-hooks/core.git/hooks/update
+++ b/git-hooks/core.git/hooks/update
@@ -14,6 +14,7 @@ if [ "$(id -u -n )" != "logerrit" ] ; then
        echo "*** The reference for this repo is gerrit. do not push directly to fdo" >&2
        exit 1
 fi
+from="\"$(git show -s --pretty=format:'%an' $3^{}) (via logerrit)\" <logerrit at kemper.freedesktop.org>"
 
 project=$(cat $GIT_DIR/description)
 recipients="libreoffice-commits at lists.freedesktop.org"
@@ -135,5 +136,5 @@ else
 		done
 fi |
 mail -s "$subject" -a "X-Git-Repository: git://anongit.freedesktop.org/git/libreoffice/core.git" \
-     -a "List-Post: <mailto:libreoffice at lists.freedesktop.org>" $recipients
+     -a "List-Post: <mailto:libreoffice at lists.freedesktop.org>" -a "From: $from" $recipients
 exit 0


More information about the Libreoffice-commits mailing list