Configure cgit commit messages to link to Gerrit and Bugzilla

Luke Benes lukebenes at hotmail.com
Tue Jun 12 15:57:20 UTC 2018


Christian,

Could we get cgit to link to gerrit and bugzilla? Like how gerrit does this now. Here is an example:
Compare:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=c8a739a2
To it's gerrit equivalent:
https://gerrit.libreoffice.org/#/c/55436/

Cgit offers this ability with a commit-filter option:
http://git.zx2c4.com/cgit/tree/cgitrc.5.txt#n114
http://git.zx2c4.com/cgit/tree/cgitrc.5.txt#n582

NOTE: The scan-path option must be 
specified *before* the filter option.

There also is a very
basic commit filter in the cgit source tree: 
http://git.zx2c4.com/cgit/tree/filters/commit-links.sh

Here is another sample script that does this:

https://lists.zx2c4.com/pipermail/cgit/2014-September/002240.html


More information about the LibreOffice mailing list