Flutter Engine
The Flutter Engine
Commit-Message-Best-Practices
  1. First line is a capitalized, short (50 chars or less) summary,
    • Please include the component for which the change is being made in the first line
      • [Analyzer] short (50 chars or less) summary
      • [dart2js] short (50 chars or less) summary
      • [CFE] short (50 chars or less) summary
      • [CoreLib] short (50 chars or less) summary
      • [ddc] short (50 chars or less) summary
      • [VM - Runtime] short (50 chars or less) summary

Always add a blank line before more information. Many git tools assume this layout.

  1. More detailed explanatory text, if necessary. Wrap it to about 72 characters or so.
  1. When linking to an associated GitHub Issue
  2. Write your commit message in the present tense: "Fix bug" and not "Fixed bug." This convention matches up with commit messages generated by commands like git merge and git revert.

Example

[VM - GC] Summarize changes in 50 chars or less
More detailed explanatory text, if necessary. Wrap it to about 72 characters or so. In some
contexts, the first line is treated as the subject of an email and the rest of the text as the
body. The blank line separating the summary from the body is critical (unless you omit the
body entirely); tools like rebase can get confused if you run the two together.
Closes https://github.com/dart-lang/sdk/issues/1
Further paragraphs come after blank lines.
- Bullet points are okay, too
- Use a hyphen or asterisk, followed by a single space.
- Use a hanging indent for
longer lines

See also: