aboutsummaryrefslogtreecommitdiff
path: root/models/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-14 22:36:22 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-14 22:36:22 +0800
commit607303e4dee3ddf9ba3d9d67b0186fc5213b167b (patch)
tree3c662c1122423c4a4ec1973f5b944830234e1aa4 /models/repo.go
parent1902500b0dcefa20627129b48c8131da8798c169 (diff)
add id
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index 6e45367c..a44bf69a 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -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(),