有什么方法可以在提交特定文件时不运行“提交后挂钩”或跳过“提交后挂钩语句”?
您可以在post-commit
脚本中使用测试。在svnlook changed repository_directory
将显示哪些文件改变了-可以使用grep
或相似。
例如:
#!/bin/sh
/usr/bin/svnlook changed /svn/repo | grep -w ' yourfile$' && exit 0
# here begin the main part of your (original) hook
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句