@@ -109,10 +109,10 @@ func (tes Entries) Sort() {
109
109
}
110
110
111
111
type commitInfo struct {
112
- id string
113
- entry string
114
- infos []interface {}
115
- err error
112
+ id string
113
+ entryName string
114
+ infos []interface {}
115
+ err error
116
116
}
117
117
118
118
// GetCommitsInfo takes advantages of concurrey to speed up getting information
@@ -129,7 +129,7 @@ func (tes Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interfac
129
129
for i := range tes {
130
130
if tes [i ].Type != OBJECT_COMMIT {
131
131
go func (i int ) {
132
- cinfo := commitInfo {id : tes [i ].ID .String (), entry : tes [i ].Name ()}
132
+ cinfo := commitInfo {id : tes [i ].ID .String (), entryName : tes [i ].Name ()}
133
133
c , err := commit .GetCommitByPath (filepath .Join (treePath , tes [i ].Name ()))
134
134
if err != nil {
135
135
cinfo .err = fmt .Errorf ("GetCommitByPath (%s/%s): %v" , treePath , tes [i ].Name (), err )
@@ -143,7 +143,7 @@ func (tes Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interfac
143
143
144
144
// Handle submodule
145
145
go func (i int ) {
146
- cinfo := commitInfo {id : tes [i ].ID .String (), entry : tes [i ].Name ()}
146
+ cinfo := commitInfo {id : tes [i ].ID .String (), entryName : tes [i ].Name ()}
147
147
sm , err := commit .GetSubModule (path .Join (treePath , tes [i ].Name ()))
148
148
if err != nil {
149
149
cinfo .err = fmt .Errorf ("GetSubModule (%s/%s): %v" , treePath , tes [i ].Name (), err )
@@ -172,7 +172,7 @@ func (tes Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interfac
172
172
return nil , info .err
173
173
}
174
174
175
- infoMap [info .entry ] = info .infos
175
+ infoMap [info .entryName ] = info .infos
176
176
i ++
177
177
if i == len (tes ) {
178
178
break
0 commit comments