首页 > 代码库 > Windows Pre-commit hook for comment length Subversion
Windows Pre-commit hook for comment length Subversion
@echo off :: Stops commits that have empty log messages. @echo off setlocal rem Subversion sends through the path to the repository and transaction id set REPOS=%1 set TXN=%2 svnlook log %REPOS% -t %TXN% | findstr . > nul if %errorlevel% gtr 0 (goto err) else exit 0 :err echo. 1>&2 echo Your commit has been blocked because you didn‘t enter a comment. 1>&2 echo Write a log message describing the changes made and try again. 1>&2 echo Thanks 1>&2 exit 1
http://stackoverflow.com/questions/869248/windows-pre-commit-hook-for-comment-length-subversion
Windows Pre-commit hook for comment length Subversion
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。