diff options
author | Unknwon <u@gogs.io> | 2015-11-03 22:49:06 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-03 22:49:06 -0500 |
commit | 3a81fdf092a39cc94f3bb896a42db8546bd5f39a (patch) | |
tree | a436e2de1aaafab77e985c550b165df7dc12f3ae /modules/git/repo_commit.go | |
parent | 6f0a41b8b28ba33382ab8d655c0d015324be7647 (diff) | |
download | gitea-3a81fdf092a39cc94f3bb896a42db8546bd5f39a.tar.gz gitea-3a81fdf092a39cc94f3bb896a42db8546bd5f39a.zip |
rename fields
Diffstat (limited to 'modules/git/repo_commit.go')
-rw-r--r-- | modules/git/repo_commit.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/git/repo_commit.go b/modules/git/repo_commit.go index e8ac2dfc57..286330587f 100644 --- a/modules/git/repo_commit.go +++ b/modules/git/repo_commit.go @@ -70,7 +70,7 @@ l: if err != nil { return nil, err } - commit.Tree.Id = id + commit.Tree.ID = id case "parent": // A commit can have one or more parents oid, err := NewIdFromString(string(line[spacepos+1:])) @@ -121,7 +121,7 @@ func (repo *Repository) getCommit(id sha1) (*Commit, error) { return nil, err } commit.repo = repo - commit.Id = id + commit.ID = id repo.commitCache[id] = commit return commit, nil @@ -211,7 +211,7 @@ func (repo *Repository) CommitsBetween(last *Commit, before *Commit) (*list.List var err error cur := last for { - if cur.Id.Equal(before.Id) { + if cur.ID.Equal(before.ID) { break } l.PushBack(cur) @@ -240,7 +240,7 @@ func (repo *Repository) commitsBefore(lock *sync.Mutex, l *list.List, parent *li for { if in == nil { break - } else if in.Value.(*Commit).Id.Equal(commit.Id) { + } else if in.Value.(*Commit).ID.Equal(commit.ID) { return nil } else { if in.Next() == nil { |