Bug 376420 - Provide extension-point to validate commit message content
Summary: Provide extension-point to validate commit message content
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-10 13:01 EDT by Lars Ohlen CLA
Modified: 2014-07-15 09:46 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Ohlen CLA 2012-04-10 13:01:20 EDT
Define a public non internal Commit Message Validator (0..n extenders) extension-point.

When the user presses the OK button in the CommitDialog,  the Commit Message Validator extenders should be invoked. This to prevent the user from committing messages that does fulfil some specific rule. 

If 1 to n Commit Message Validators are avaliable all should
be invoked. If one of the validators returns false the entire operation should be considered to be non-valid and therefore the OK operation will not be completed.
Comment 1 Andrey Loskutov CLA 2014-07-15 09:46:12 EDT
See also bug 430523 comment 1 where I propose pre-commit hooks API which can be also used for commit message validation.

I think this bug can be made duplicated of bug 430523 as the requested functionality here is a subset of 430523.