diff options
author | James Moger <james.moger@gitblit.com> | 2013-09-18 11:22:08 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-09-18 11:31:02 -0400 |
commit | 0c5cee25a1d9019de2d92427fda886a28076aa01 (patch) | |
tree | 3b51d1ebc7349dbc1e4f078ff68e611bf0153825 /src/main/distrib/data/gitblit.properties | |
parent | 8a47deaba26f931b753773388007395edd02e266 (diff) | |
download | gitblit-0c5cee25a1d9019de2d92427fda886a28076aa01.tar.gz gitblit-0c5cee25a1d9019de2d92427fda886a28076aa01.zip |
Disable but improve the example commit message regexes
Diffstat (limited to 'src/main/distrib/data/gitblit.properties')
-rw-r--r-- | src/main/distrib/data/gitblit.properties | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main/distrib/data/gitblit.properties b/src/main/distrib/data/gitblit.properties index b25e5aab..2318447c 100644 --- a/src/main/distrib/data/gitblit.properties +++ b/src/main/distrib/data/gitblit.properties @@ -1040,13 +1040,17 @@ regex.global = true # Use !!! to separate the search pattern and the replace pattern
# searchpattern!!!replacepattern
# SINCE 0.5.0
-regex.global.bug = \\b(Bug:)(\\s*[#]?|-){0,1}(\\d+)\\b!!!<a href="http://somehost/bug/$3">Bug-Id: $3</a>
+
+# regex.global.bug = \\b(Bug:)(\\s*[#]?|-){0,1}(\\d+)\\b!!!Bug: <a href="http://somehost/bug/$3">$3</a>
# SINCE 0.5.0
-regex.global.changeid = \\b(Change-Id:\\s*)([A-Za-z0-9]*)\\b!!!<a href="http://somehost/changeid/$2">Change-Id: $2</a>
+
+# Example Gerrit links
+# regex.global.changeid = \\b(Change-Id:\\s*)([A-Za-z0-9]*)\\b!!!Change-Id: <a href="http://somehost/r/#q,$2,n,z">$2</a>
+# regex.global.reviewedon = \\b(Reviewed-on:\\s*)([A-Za-z0-9:/\\.]*)\\b!!!Reviewed-on: <a href="$2">$2</a>
# Example per-repository regex substitutions overrides global
# SINCE 0.5.0
-regex.myrepository.bug = \\b(Bug:)(\\s*[#]?|-){0,1}(\\d+)\\b!!!<a href="http://elsewhere/bug/$3">Bug-Id: $3</a>
+# regex.myrepository.bug = \\b(Bug:)(\\s*[#]?|-){0,1}(\\d+)\\b!!!Bug: <a href="http://elsewhere/bug/$3">$3</a>
#
# Mail Settings
|