2021 年更新:现在完全通过github.com/git-multimail/git-multimail
使用 Git 2.33(2021 年第三季度),从og git 本身中删除了多邮件:contrib/
请参阅Johannes Schindelin ( ) 的提交 f74d114(2021 年 6 月 10 日)。(由Junio C Hamano 合并 -- --在提交 7e24201中,2021 年 7 月 8 日)dscho
gitster
签字人:约翰内斯·辛德林
multimail项目是独立开发的,有自己的项目页面。
传统上,我们以contrib/
.
但是,这样的副本很容易变得陈旧,而将用户定向到实际项目会更好。
因此,contrib/hooks/multimail
我在下面 2013 年提到的 git 2.33+(2021 年第三季度,8 年后)不再存在。
注意:您可能对新的 git-multimail 脚本感兴趣,它将包含在 git1.8.4(2013 年 7 月)中
请参阅提交 bc501f69fc6d697968d472afbabe6af97a758b12:
git-multimail
: 改进后接收电子邮件的替代品
Add git-multimail
,一个用于生成推送到 Git 存储库的通知电子邮件的工具。
它在很大程度上与 插件兼容post-receive-email
,并建议最终替换该脚本。relative to
的优点在中描述。git-multimail
post-receive-email
README.migrate-from-post-receive-email
git-multimail
被组织在一个目录contrib/hooks/multimail
中。
查看其维护的独立GitHub 项目(即使该项目将在contrib/hooks/multimail
启动 git1.8.4 时集成)
你补充说:
echo ""
echo "Line of changes:"
git diff --diff-filter=M --find-copies-harder --no-prefix --unified=2 $oldrev..$newrev
You would add it in the git_multimail.py
python script, just after the diff-tree
.
Plus, you can fork the GitHub project, and propose a multimailhook.diffFilterOpts
new option, for your diff --diff-filter
addition.