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