Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 186453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:38:58+00:00 2026-05-11T15:38:58+00:00

What template do you use for comments on code commit? One example of a

  • 0

What template do you use for comments on code commit?

One example of a template is:

  1. (change 1): (source file 1.1, 1.2): (details of change made), (why)
  2. (change 2): (source file 2.1): (details of change made), (why)

Ideally each change should be mapped to an issue in the issue tracker. Is this template alright?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:38:59+00:00Added an answer on May 11, 2026 at 3:38 pm

    Here are my thoughts… all these will be open to interpretation depending on your particular development methodologies.

    • You should be committing fairly often, with a single focus for every commit, so based on that, comments should be short and detail what the focus of the commit was.
    • I’m a fan of posting the what in your comment, with the why and the how being detailed elsewhere (ideally in your bug tracking). The why should be the ticket, and upon closing the ticket, you should have some kind of note about how that particular issue was addressed.
    • A reference to your bug tracking system is good if it isn’t handled otherwise (TRAC/SVN interaction, for example). The reason for this is to point other developers in the right direction if they’re looking for more information on the commit.
    • Don’t include specific file names unless the fix really complex and detail is needed. Even still, complex details probably belong in bug tracking with your implementation notes, not in version control. Files edited, diff details, etc, should hopefully be included with version control, and we don’t want to spend time duplicating this.

    Given these ideas, an example commit comment for me would be something like

    Req3845: Updated validation to use the new RegEx validation developed in Req3831.

    Short, communicates what was changed, and provides some kind of reference for others to get more info without hunting you down.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 219k
  • Answers 219k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you can't include the other jar, you can use… May 12, 2026 at 11:48 pm
  • Editorial Team
    Editorial Team added an answer It seems like this might do strange things in some… May 12, 2026 at 11:48 pm
  • Editorial Team
    Editorial Team added an answer Something like http://jscc.phorward-software.com/, maybe? JS/CC is the first available parser… May 12, 2026 at 11:48 pm

Related Questions

Let's say you have a view called View Story which is just a web
Wondering how much effort I should go to forcing useful debugging information when creating
I am writing an application where one of the features is to allow the
You can create various Java code templates in Eclipse via Window > Preferences >

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.