diff options
author | delvh <dev.lh@web.de> | 2025-07-01 00:55:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-01 06:55:36 +0800 |
commit | 8dbf13b1cb1235a34322fe0e2e92fa92642dd9c5 (patch) | |
tree | 4e5904faf5b862a4f2be860e23a289904f277467 /modules/git/commit.go | |
parent | a94e472788be0e956b4a231b7067af354a4213e3 (diff) | |
download | gitea-8dbf13b1cb1235a34322fe0e2e92fa92642dd9c5.tar.gz gitea-8dbf13b1cb1235a34322fe0e2e92fa92642dd9c5.zip |
Follow file symlinks in the UI to their target (#28835)
Symlinks are followed when you click on a link next to an entry, either
until a file has been found or until we know that the link is dead.
When the link cannot be accessed, we fall back to the current behavior
of showing the document containing the target.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules/git/commit.go')
-rw-r--r-- | modules/git/commit.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/git/commit.go b/modules/git/commit.go index 1c1648eb8b..ed4876e7b3 100644 --- a/modules/git/commit.go +++ b/modules/git/commit.go @@ -20,7 +20,8 @@ import ( // Commit represents a git commit. type Commit struct { - Tree + Tree // FIXME: bad design, this field can be nil if the commit is from "last commit cache" + ID ObjectID // The ID of this commit object Author *Signature Committer *Signature |