-
Story
-
Resolution: Done
-
Normal
-
None
-
RELENG Sprint 29
It would be handy if we had a command that could quickly scan all of the commits in a given git repository to see if they have DCO lines on all primary commits (actual code change commits).
Given we're regularly asked if a project can import code and we state that we want squash commits because of DCO enforcement, having such a tool would make it easier for us to take in history if we could execute a quick scan to validate that all primary commits meet our requirement.
Commit objects that are allowed to not have a DCO line:
- empty commits
- merge commit objects (not the commit objects of the merge, but the merge itself)
- tags (since there isn't such a convention there)
Essentially, if a standard configuration Gerrit would not create a DCO line for a particular commit operation, that is an operation we would accept as valid without DCO.