标签:
vim pre-commit
#!/bin/sh下 添加内容, 不用注释其它内容
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh #必须填写注释且不少于5个字 REPOS= "$1" TXN= "$2" # Make sure that the log message contains some text. SVNLOOK= /usr/bin/svnlook LOGMSG=`$SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" | wc -c` if [ "$LOGMSG" -lt 5 ]; #要求注释不能少于4个字符,您可自定义 then echo -e "注释信息不能为空且不少于4个字!" 1>&2 exit 1 fi exit 0 |
标签:
原文地址:http://www.cnblogs.com/gossip/p/5913247.html