Git Commit Records
Git commit records are required to take a specific form. The credentials of the actual author must be used to populate the Author field. The author credentials must specify the author’s actual (legal) name and email address. The email address used must match the email address that the Eclipse Foundation has on file for the author (case-sensitive).
The commit message is divided into three sections:
- One line (max 72 characters) summary;
- Description; and
- Footer.
Example Git Commit Record
commit d6cf52411377a039fc2906378711091a26e932cb
Author: Some Body <somebody@somewhere.com> (1)
Date: Wed May 29 16:17:36 2013 +0200
Bug 350686 - Hide unwanted action bar items (2)
This change hides unwanted 'Link with Editor' and
'Customize View...' items from the local toolbar
and the view menu.
Also-by: Some Bodyelse <somebodyelse@nowhere.com> (3)
- The email address of the author must match the email address on the Eclipse Foundation Account, the name “Some Body” must be replaced by the real name of the person.
- Best practice: include the bug id in the commit message summary.
- Additional authors can be added using
Also-byorCo-authored-byentries, by replacing the name “Some Bodyelse” by the real name of the person (use one entry per person).
Important: The email address used in the
Authorfield (and, when required, in theAlso-by/Co-authored-byentries) must be valid and real, and the contributor must have signed the ECA.
The summary line is used in many places where Git commits are listed, ensure that this line is sensible by itself. The description area should be used to provide more detail about the commit. The footer area is used for extra fields and values.
An Also-by (or Co-authored-by) entry can be added for each additional author of a commit (one committer per entry). This might apply, for example, if a commit has been authored via pair-programming, or the commit is the result of collapsing multiple commits authored by multiple developers. To be considered valid the entry must take the form Also-by: Name <email>.
Authors who are not committers on the project receiving the commit must have an Eclipse Foundation Account and must have a signed Eclipse Contributor Agreement (ECA) on file.