Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[egit-dev] Commit Validation

Hey,

 

As discussed with some of you the last 2 years of EclipseCon Europe, I now FINALLY have time to start working on a “commit validation” feature. It should be rather simple: After a commit has been done (1), the commit object is passed to a set of registered validators. They may object or not, returning an IStatus. A dialog is presented to the user, showing him a list of validation warnings/errors. In case there are errors, the commit soft-reset, and the commit message get’s prefilled with the commits message again.

 

(1)    /After/ the commit because it is way easier to have a look at a commit object and its contents than having to check the whole worktree... we already discussed this @ EclipseCon :)

 

Does that sound like a good idea?

 

I’d need a suggestion on how to register validators in EGit – should I create an extension point, or is there a better EntryPoint (register on repository?).

 

Thanks for any feedback.

 

Cheers,

Markus

 

--

Mit freundlichen Grüßen / Best regards

 

Markus Duft | Software Architect

SSI SCHÄFER | Salomon Automation GmbH | Friesachstraße 15 | 8114 Friesach bei Graz | Austria

Phone +43 3127 200-575 | Fax +43 3127 200-22

markus.duft@xxxxxxxxxxxxxxxx

Website | Blog | YouTube | Facebook

 

Salomon Automation GmbH | Friesachstrasse 15 | 8114 Friesach bei Graz | Austria
Registered Office: Friesach bei Graz | Commercial Register: 49324 K | VAT no. ATU28654300
Commercial Court: Landesgericht für Zivilrechtssachen Graz

Back to the top