aboutsummaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-03 09:52:17 -0500
committerUnknwon <u@gogs.io>2015-11-03 09:52:17 -0500
commit0af035c37e8b561662c93b163b3294b91be6ffac (patch)
treed985f7b5c5e635235c5fc503a3d09cf91d81bd14 /modules/base
parentbc8215721627fcdeaa23c6e3bf625e0c4e5c3407 (diff)
downloadgitea-0af035c37e8b561662c93b163b3294b91be6ffac.tar.gz
gitea-0af035c37e8b561662c93b163b3294b91be6ffac.zip
#1078 not show bin when rename a file
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/template.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/template.go b/modules/base/template.go
index 0fd1af755c..ff743e957d 100644
--- a/modules/base/template.go
+++ b/modules/base/template.go
@@ -263,7 +263,7 @@ func ActionContent2Commits(act Actioner) *PushCommits {
func DiffTypeToStr(diffType int) string {
diffTypes := map[int]string{
- 1: "add", 2: "modify", 3: "del",
+ 1: "add", 2: "modify", 3: "del", 4: "rename",
}
return diffTypes[diffType]
}