aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/commit.go
diff options
context:
space:
mode:
authorKerwin Bryant <kerwin612@qq.com>2025-04-15 22:35:22 +0800
committerGitHub <noreply@github.com>2025-04-15 22:35:22 +0800
commit2b99a58f540a15a04b48cba507ace8abf3c52014 (patch)
treeaa14c105285455352ba37ed386f3cfab83b4eccf /routers/web/repo/commit.go
parent18a673bad1d036502baca4491a16679692c42320 (diff)
downloadgitea-2b99a58f540a15a04b48cba507ace8abf3c52014.tar.gz
gitea-2b99a58f540a15a04b48cba507ace8abf3c52014.zip
Mark parent directory as viewed when all files are viewed (#33958)
Fix #25644 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/web/repo/commit.go')
-rw-r--r--routers/web/repo/commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/commit.go b/routers/web/repo/commit.go
index 3569a356d1..973d68d45c 100644
--- a/routers/web/repo/commit.go
+++ b/routers/web/repo/commit.go
@@ -369,7 +369,7 @@ func Diff(ctx *context.Context) {
return
}
- ctx.PageData["DiffFiles"] = transformDiffTreeForUI(diffTree, nil)
+ ctx.PageData["DiffFileTree"] = transformDiffTreeForWeb(diffTree, nil)
}
statuses, _, err := git_model.GetLatestCommitStatus(ctx, ctx.Repo.Repository.ID, commitID, db.ListOptionsAll)