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
相關文章
相關標籤/搜索