How to require commit messages in VisualSVN server?

后端 未结 10 1934
故里飘歌
故里飘歌 2020-12-07 12:00

We\'ve got VisualSVN Server set up as our Subversion server on Windows, and we use Ankhsvn + TortoiseSVN as clients on our workstations.

How can you configure the se

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 12:26

    The technical answers to your question have already been given. I'd like to add the social answer, which is: "By establishing commit message standards with your team and getting them to agree (or accept) reasons why one would need expressive commit messages"

    I've seen so many commit messages that said "patch", "typo", "fix" or similar that I've lost count.

    Really - make it clear to everybody why you'd need them.

    Examples for reasons are:

    • Generated Changenotes (well - this'd actually make a nice automatic tool to enforce good messages if I know that they will be (with my name) publically visible - if only for the team)
    • License issues: You might need to know the origin of code later, e.g. should you want to change the license to your code (Some organizations even have standards for commit message formatting - well, you could automate the checking for this, but you'd not necessarily get good commit messages with this)
    • Interoperability with other tools, e.g. bugtrackers/issue management systems that interface with your version control and extract information from the commit messages.

    Hope that helps, additionally to the technical answers about precommit hooks.

提交回复
热议问题