code.gitea.io/gitea@v1.19.3/modules/structs/repo_refs.go (about) 1 // Copyright 2018 The Gitea Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 package structs 5 6 // Reference represents a Git reference. 7 type Reference struct { 8 Ref string `json:"ref"` 9 URL string `json:"url"` 10 Object *GitObject `json:"object"` 11 } 12 13 // GitObject represents a Git object. 14 type GitObject struct { 15 Type string `json:"type"` 16 SHA string `json:"sha"` 17 URL string `json:"url"` 18 }