Skip to content

Instantly share code, notes, and snippets.

@jimtreadway
jimtreadway / bugzilla-comment-git-id.patch
Created October 21, 2010 01:07
A very simple but ugly hack to link to Git comment ids from a Bugzilla comment.
--- Template.pm.orig 2010-10-20 17:16:02.000000000 -0700
+++ Template.pm 2010-10-20 17:59:23.000000000 -0700
@@ -234,6 +234,25 @@
("\0\0" . ($count-1) . "\0\0")
~egmxi;
+ # Link to Git repository
+ if ($text =~ /\bcommit\s*[a-zA-Z0-9]+/) {
+ my $gitweb = "http://example.com/git";
+ my %repos = (