python钩子简单脚本

#!/usr/bin/env pythonpython import regit import sysspa #验证提交格式的脚本,其中[和]须要转义\[xml #放到脚本commit-msg里面,在脚步里面执行:python /xxx/xxx/xxx.pyit mfile = open('/xxx/xxx/.git/COMMIT_EDITMSG', 'rt') all = '' while Tr
相关文章
相关标签/搜索