mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 18:17:19 +00:00
More on diff page
This commit is contained in:
@ -539,3 +539,16 @@ func ActionDesc(act Actioner, avatarLink string) string {
|
||||
return "invalid type"
|
||||
}
|
||||
}
|
||||
|
||||
func DiffTypeToStr(diffType int) string {
|
||||
switch diffType {
|
||||
case 1:
|
||||
return "add"
|
||||
case 2:
|
||||
return "modify"
|
||||
case 3:
|
||||
return "del"
|
||||
default:
|
||||
return "unknown"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user