-1

Does anyone have some pointers to how to write SVN comment templates. I would like to include:

  • the current date (YYYY-MM-DD)
  • the author of the commit (author of the code)
Razvan
  • 9,925
  • 6
  • 38
  • 51
  • 2
    Both of those are already included in the commit information, it's not necessary to repeat them in the commit message. – Greg Hewgill Aug 17 '12 at 22:15
  • possible duplicate of [How do I create a SVN Commit Message Template and Hook to Verify](http://stackoverflow.com/questions/983026/how-do-i-create-a-svn-commit-message-template-and-hook-to-verify) – Greg Hewgill Aug 19 '12 at 19:55

1 Answers1

0
  1. Why you are making the change. Try to make this something that isn't obvious from reading the code. "fixed a typo" is preferable to changed "1 to 2".
  2. If you are working on a defect, include the defect #
  3. If you are working on an enhancement request or named feature or the like, include that as well.
Jeanne Boyarsky
  • 12,156
  • 2
  • 49
  • 59
  • 2
    Thanks ! I agree with you on your guidelines. My question was: how to write TEMPLATES in ECLIPSE – Razvan Aug 18 '12 at 21:58
  • I wouldn't. Because there are only two thing. An optional identifier and a human message. Here's how someone else did it though: http://stackoverflow.com/questions/983026/how-do-i-create-a-svn-commit-message-template-and-hook-to-verify. If you are asking where they are, see preferences > svn ? templates. – Jeanne Boyarsky Aug 19 '12 at 14:29