Changes between Version 22 and Version 23 of CommitMessages


Ignore:
Timestamp:
Sep 16, 2017, 4:08:13 PM (7 years ago)
Author:
raimue (Rainer Müller)
Comment:

Recommend use of full URLs

Legend:

Unmodified
Added
Removed
Modified
  • CommitMessages

    v22 v23  
    15151. **Body.** Use the rest of the commit message to provide context for your changes.
    1616  - **Say what the commit itself cannot.** What was the previous behavior, and why was it incorrect or suboptimal? How does your commit change that, and why did you choose this particular approach? Don't just translate the commit diff into English. (However, some context is understood and need not be pointed out. For example, we assume that updating a port to a new upstream version is beneficial. You do not have to describe the deficiencies of the old version and benefits of the new one.)
    17   - **Use full Trac URLs.** TracLinks do not work on GitHub (obviously), so refer to Trac tickets by URL instead of number (e.g., "!https://trac.macports.org/ticket/12345" instead of "!#12345").
    18   - **Use autolinked references** to refer to GitHub resources. The website [https://help.github.com/articles/autolinked-references-and-urls automatically links] "#//n//" to pull requests and [[span(SHA-1, style=white-space: nowrap)]] hashes to commits.
     17  - **Use full URLs.** TracLinks do not work on GitHub (obviously), so refer to Trac tickets by URL instead of number (e.g., "!https://trac.macports.org/ticket/12345" instead of "!#12345"). To refer to GitHub resources, you may use the [https://help.github.com/articles/autolinked-references-and-urls shorter syntax] such as "#//n//" for pull requests, but the full URL is less ambiguous and makes it easier to follow when viewing `git log` on the command line. The GitHub web interface will always display links to its own resources in the short syntax anyway. For references to commits, use [[span(SHA-1, style=white-space: nowrap)]] hashes.
    1918  - **Wrap body text at 72 characters.** Git does not do this automatically, so hard-wrap the body to prevent text from overflowing standard-width terminal emulators. This also ensures that the output of `git format-patch` adheres to [http://www.openbsd.org/mail.html#Netiquette good email etiquette]. (You can't do much about very long URLs, unfortunately.)
    2019