aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/tree_blob_gogit.go
diff options
context:
space:
mode:
authorKerwin Bryant <kerwin612@qq.com>2025-03-15 16:26:49 +0800
committerGitHub <noreply@github.com>2025-03-15 16:26:49 +0800
commit92f997ce6b2535c0c71a33ade290378a744c7224 (patch)
tree68295c5ebc8cb1412e8d88757fd529538da4e2c1 /modules/git/tree_blob_gogit.go
parent926f0a19bec2fa075ee547dd8b405489caa9923e (diff)
downloadgitea-92f997ce6b2535c0c71a33ade290378a744c7224.tar.gz
gitea-92f997ce6b2535c0c71a33ade290378a744c7224.zip
Add file tree to file view page (#32721)
Resolve #29328 This pull request introduces a file tree on the left side when reviewing files of a repository. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules/git/tree_blob_gogit.go')
-rw-r--r--modules/git/tree_blob_gogit.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/git/tree_blob_gogit.go b/modules/git/tree_blob_gogit.go
index 92c25cb92c..f29e8f8b9e 100644
--- a/modules/git/tree_blob_gogit.go
+++ b/modules/git/tree_blob_gogit.go
@@ -21,6 +21,7 @@ func (t *Tree) GetTreeEntryByPath(relpath string) (*TreeEntry, error) {
return &TreeEntry{
ID: t.ID,
// Type: ObjectTree,
+ ptree: t,
gogitTreeEntry: &object.TreeEntry{
Name: "",
Mode: filemode.Dir,