mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08: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