Skip to content

Commit c7a2974

Browse files
committed
remove commitInfo.id (not need anymore)
1 parent 1de2a32 commit c7a2974

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tree_entry.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ func (tes Entries) Sort() {
109109
}
110110

111111
type commitInfo struct {
112-
id string
113112
entryName string
114113
infos []interface{}
115114
err error
@@ -129,7 +128,7 @@ func (tes Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interfac
129128
for i := range tes {
130129
if tes[i].Type != OBJECT_COMMIT {
131130
go func(i int) {
132-
cinfo := commitInfo{id: tes[i].ID.String(), entryName: tes[i].Name()}
131+
cinfo := commitInfo{entryName: tes[i].Name()}
133132
c, err := commit.GetCommitByPath(filepath.Join(treePath, tes[i].Name()))
134133
if err != nil {
135134
cinfo.err = fmt.Errorf("GetCommitByPath (%s/%s): %v", treePath, tes[i].Name(), err)
@@ -143,7 +142,7 @@ func (tes Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interfac
143142

144143
// Handle submodule
145144
go func(i int) {
146-
cinfo := commitInfo{id: tes[i].ID.String(), entryName: tes[i].Name()}
145+
cinfo := commitInfo{entryName: tes[i].Name()}
147146
sm, err := commit.GetSubModule(path.Join(treePath, tes[i].Name()))
148147
if err != nil {
149148
cinfo.err = fmt.Errorf("GetSubModule (%s/%s): %v", treePath, tes[i].Name(), err)

0 commit comments

Comments
 (0)