summaryrefslogtreecommitdiffstats
path: root/modules/git/tree_entry.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-03 22:49:06 -0500
committerUnknwon <u@gogs.io>2015-11-03 22:49:06 -0500
commit3a81fdf092a39cc94f3bb896a42db8546bd5f39a (patch)
treea436e2de1aaafab77e985c550b165df7dc12f3ae /modules/git/tree_entry.go
parent6f0a41b8b28ba33382ab8d655c0d015324be7647 (diff)
downloadgitea-3a81fdf092a39cc94f3bb896a42db8546bd5f39a.tar.gz
gitea-3a81fdf092a39cc94f3bb896a42db8546bd5f39a.zip
rename fields
Diffstat (limited to 'modules/git/tree_entry.go')
-rw-r--r--modules/git/tree_entry.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/git/tree_entry.go b/modules/git/tree_entry.go
index e403e93e33..1825025796 100644
--- a/modules/git/tree_entry.go
+++ b/modules/git/tree_entry.go
@@ -24,7 +24,7 @@ const (
)
type TreeEntry struct {
- Id sha1
+ ID sha1
Type ObjectType
mode EntryMode
@@ -51,7 +51,7 @@ func (te *TreeEntry) Size() int64 {
return te.size
}
- stdout, _, err := com.ExecCmdDir(te.ptree.repo.Path, "git", "cat-file", "-s", te.Id.String())
+ stdout, _, err := com.ExecCmdDir(te.ptree.repo.Path, "git", "cat-file", "-s", te.ID.String())
if err != nil {
return 0
}