svnnotify html 颜色差异

svnnotify html color diff

我正在使用 svnnotify 在提交时发送通知电子邮件。我的回购 hooks/post-commit:

上有以下脚本
#!/bin/sh

REPOS=""
REV=""
for address in $(/bin/cat /var/svn/teachbyapp/hooks/addressee.list)
do
  /usr/local/bin/svnnotify \
    -r $REV \
    -C \
    -d \
    --diff-encoding utf8 \
    -H HTML::ColorDiff \
    -p $REPOS \
    -t "$address" \
    --from svn@factory.e-levelcom.com
done

它有效,但我得到的只是黑白差异(根本没有颜色)。 添加的行带有下划线,而删除的行带有删除线格式。没有别的,一点颜色也没有。 我怎样才能得到真正的彩色差异?像 this

好的,我找到了。

感谢this工作

还需要在我的脚本中将 --css-inline 选项附加到 svnnotify 命令