[Libreoffice-commits] dev-tools.git: git-hooks/contrib
Miklos Vajna
vmiklos at suse.cz
Tue May 7 01:48:32 PDT 2013
git-hooks/contrib/mso-dumper.git/hooks/update | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
New commits:
commit efefd6998c46d3066a71c11785f21ecf79bbee70
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Tue May 7 10:47:53 2013 +0200
git-hooks: sync core -> mso-dumper
Change-Id: I5b3b57ae223ef9aa150c27de6281b0836b42e77d
diff --git a/git-hooks/contrib/mso-dumper.git/hooks/update b/git-hooks/contrib/mso-dumper.git/hooks/update
index c0a47ab..5abf97c 100755
--- a/git-hooks/contrib/mso-dumper.git/hooks/update
+++ b/git-hooks/contrib/mso-dumper.git/hooks/update
@@ -41,8 +41,9 @@ date_format="%F %R %z"
num_path_components=2
# Set subject
+repo=$(basename $(cd $GIT_DIR ; pwd))
if expr "$2" : '0*$' >/dev/null ; then
- subject="Changes to '${1##refs/heads/}'"
+ subject="$repo: Changes to '${1##refs/heads/}'"
else
base=$(git-merge-base "$2" "$3")
subject=$(git-diff-tree -r --name-only "$base" "$3" |
@@ -55,7 +56,6 @@ else
if [ "$branch" != "master" ] ; then
subject="Branch '$branch' - $subject"
fi
- repo=$(basename $GIT_DIR)
subject="$repo: $subject"
fi
@@ -107,7 +107,7 @@ else
esac
bytes=0
IFS="$(echo)"
- git-rev-list "$3" "^$base" | while read rev; do git-show $rev; done | sed 's#\\#\\\\#g' |
+ git-rev-list "$3" "^$base" | while read rev; do git-show -M $rev; done | sed 's#\\#\\\\#g' |
while read line
do
if [ "$bytes" -ge "0" ] ; then
@@ -121,5 +121,6 @@ else
fi
done
fi |
-mail -s "$subject" -a "X-Git-Repository: git://anongit.freedesktop.org/git/ooo-build/ooo-build" $recipients
+mail -s "$subject" -a "X-Git-Repository: git://anongit.freedesktop.org/git/libreoffice/contrib/mso-dumper.git" \
+ -a "List-Post: <mailto:libreoffice at lists.freedesktop.org>" $recipients
exit 0
More information about the Libreoffice-commits
mailing list