mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-10 02:31:39 +02:00
add id
This commit is contained in:
1 parent
1902500b0d
commit
607303e4de
2 files changed
+3
-1
No files matched your search
@@ -267,6 +267,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type RepoFile struct {
|
type RepoFile struct {
|
||||||
|
Id *git.Oid
|
||||||
Type int
|
Type int
|
||||||
Name string
|
Name string
|
||||||
Message string
|
Message string
|
||||||
@@ -303,6 +304,7 @@ func GetReposFiles(userName, reposName, treeName, rpath string) ([]*RepoFile, er
|
|||||||
entry := tree.EntryByIndex(i)
|
entry := tree.EntryByIndex(i)
|
||||||
|
|
||||||
repofiles = append(repofiles, &RepoFile{
|
repofiles = append(repofiles, &RepoFile{
|
||||||
|
entry.Id,
|
||||||
entry.Filemode,
|
entry.Filemode,
|
||||||
entry.Name,
|
entry.Name,
|
||||||
lastCommit.Message(),
|
lastCommit.Message(),
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<h4>Source Files:</h4>
|
<h4>Source Files:</h4>
|
||||||
<ul>
|
<ul>
|
||||||
{{range .Files}}
|
{{range .Files}}
|
||||||
<li>{{.Name}} - {{.Message}} - {{.Created}} - {{.IsFile}} - {{.IsDir}}</li>
|
<li>{{.Name}} - {{.Id}} - {{.Message}} - {{.Created}} - {{.IsFile}} - {{.IsDir}}</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user