mirror of
https://gitee.com/gitea/gitea
synced 2025-12-01 05:40:28 +08:00
Almost done diff page
This commit is contained in:
@@ -552,3 +552,15 @@ func DiffTypeToStr(diffType int) string {
|
||||
return "unknown"
|
||||
}
|
||||
}
|
||||
|
||||
func DiffLineTypeToStr(diffType int) string {
|
||||
switch diffType {
|
||||
case 2:
|
||||
return "add"
|
||||
case 3:
|
||||
return "del"
|
||||
case 4:
|
||||
return "tag"
|
||||
}
|
||||
return "same"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user