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!{
12
12
pub enum LinkStyle {
13
13
Github ,
14
14
Gitlab ,
15
- Stash
15
+ Stash ,
16
+ Cgit
16
17
}
17
18
}
18
19
@@ -36,6 +37,8 @@ impl LinkStyle {
36
37
LinkStyle :: Github => format ! ( "{}/issues/{}" , link, issue. as_ref( ) ) ,
37
38
LinkStyle :: Gitlab => format ! ( "{}/issues/{}" , link, issue. as_ref( ) ) ,
38
39
LinkStyle :: Stash => format ! ( "{}" , issue. as_ref( ) ) ,
40
+ // cgit does not support issues
41
+ LinkStyle :: Cgit => format ! ( "{}" , issue. as_ref( ) ) ,
39
42
}
40
43
}
41
44
}
@@ -59,6 +62,7 @@ impl LinkStyle {
59
62
LinkStyle :: Github => format ! ( "{}/commit/{}" , link, hash. as_ref( ) ) ,
60
63
LinkStyle :: Gitlab => format ! ( "{}/commit/{}" , link, hash. as_ref( ) ) ,
61
64
LinkStyle :: Stash => format ! ( "{}/commits/{}" , link, hash. as_ref( ) ) ,
65
+ LinkStyle :: Cgit => format ! ( "{}/commit/?id={}" , link, hash. as_ref( ) ) ,
62
66
}
63
67
}
64
68
}
You can’t perform that action at this time.
0 commit comments