You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repo_refs.go 490B

12345678910111213141516171819
  1. // Copyright 2018 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs
  5. // Reference represents a Git reference.
  6. type Reference struct {
  7. Ref string `json:"ref"`
  8. URL string `json:"url"`
  9. Object *GitObject `json:"object"`
  10. }
  11. // GitObject represents a Git object.
  12. type GitObject struct {
  13. Type string `json:"type"`
  14. SHA string `json:"sha"`
  15. URL string `json:"url"`
  16. }