mirror of
https://github.com/hanzoai/forge.git
synced 2026-10-30 15:00:39 +00:00
Source files keep their SPDX-License-Identifier and Hanzo copyright line; the Gitea, Gogs and LFS Test Server copyrights they used to repeat now live once in NOTICE, alongside LICENSE. The header lint accepts any copyright line above the SPDX line, so it no longer demands an upstream one. Co-authored-by: Hanzo Dev <[email protected]>
25 lines
682 B
Go
25 lines
682 B
Go
// Copyright 2026 Hanzo AI, Inc. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package structs
|
|
|
|
// Reference represents a Git reference.
|
|
type Reference struct {
|
|
// The name of the Git reference (e.g., refs/heads/main)
|
|
Ref string `json:"ref"`
|
|
// The URL to access this Git reference
|
|
URL string `json:"url"`
|
|
// The Git object that this reference points to
|
|
Object *GitObject `json:"object"`
|
|
}
|
|
|
|
// GitObject represents a Git object.
|
|
type GitObject struct {
|
|
// The type of the Git object (e.g., commit, tag, tree, blob)
|
|
Type string `json:"type"`
|
|
// The SHA hash of the Git object
|
|
SHA string `json:"sha"`
|
|
// The URL to access this Git object
|
|
URL string `json:"url"`
|
|
}
|