利用VBS实现pre-commit对提交注释的检查(样例实现的是对长度的检查)。
1.钩子调用脚本内容
cscript.exe d:/pre-commit.vbs %1 %2
2.钩子处理脚本内容
'*******************************************************************************
'* NAME : pre-lock.vbs
'* AUTHOR : 杨瑞(OscarYang)
'* CREATED : 2010-3-19
'*
'* PURPOSE : 实现提交日志检查
'*
'*
'* pre-commit hook arguments:
'* [1] REPOS-PATH (the path to this repository)
'* [2] TXN-NAME (the name of the txn about to be committed)
'*******************************************************************************
'必须显式声明变量
Option E