File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ clog_enum!{
1212 pub enum LinkStyle {
1313 Github ,
1414 Gitlab ,
15- Stash
15+ Stash ,
16+ Cgit
1617 }
1718}
1819
@@ -36,6 +37,8 @@ impl LinkStyle {
3637 LinkStyle :: Github => format ! ( "{}/issues/{}" , link, issue. as_ref( ) ) ,
3738 LinkStyle :: Gitlab => format ! ( "{}/issues/{}" , link, issue. as_ref( ) ) ,
3839 LinkStyle :: Stash => format ! ( "{}" , issue. as_ref( ) ) ,
40+ // cgit does not support issues
41+ LinkStyle :: Cgit => format ! ( "{}" , issue. as_ref( ) ) ,
3942 }
4043 }
4144 }
@@ -59,6 +62,7 @@ impl LinkStyle {
5962 LinkStyle :: Github => format ! ( "{}/commit/{}" , link, hash. as_ref( ) ) ,
6063 LinkStyle :: Gitlab => format ! ( "{}/commit/{}" , link, hash. as_ref( ) ) ,
6164 LinkStyle :: Stash => format ! ( "{}/commits/{}" , link, hash. as_ref( ) ) ,
65+ LinkStyle :: Cgit => format ! ( "{}/commit/?id={}" , link, hash. as_ref( ) ) ,
6266 }
6367 }
6468 }
You can’t perform that action at this time.
0 commit comments