Documentation
¶
Index ¶
Constants ¶
View Source
const ( StackerRefPrefix = "refs/stacker/" StackerBaseRefPrefix = StackerRefPrefix + "base/" StackerStartRefPrefix = StackerRefPrefix + "start/" StackerRemoteRefPrefix = StackerRefPrefix + "remote/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchName ¶
type BranchName string
func (BranchName) RefName ¶
func (n BranchName) RefName() RefName
func (BranchName) StackerBaseRefName ¶
func (n BranchName) StackerBaseRefName() RefName
func (BranchName) StackerRemoteRefName ¶
func (n BranchName) StackerRemoteRefName() RefName
func (BranchName) StackerStartRefName ¶
func (n BranchName) StackerStartRefName() RefName
func (BranchName) String ¶
func (n BranchName) String() string
type ObjectName ¶
type ObjectName string
const NonExistantObject ObjectName = "0000000000000000000000000000000000000000"
func (ObjectName) String ¶
func (n ObjectName) String() string
type Ref ¶
type Ref struct {
// contains filtered or unexported fields
}
func (Ref) ObjectName ¶
func (r Ref) ObjectName() ObjectName
func (Ref) Remote ¶
func (r Ref) Remote() RemoteName
func (Ref) RemoteRefName ¶
func (Ref) SymRefTarget ¶
func (Ref) UpstreamRef ¶
type RefName ¶
type RefName string
func ParseRefName ¶
func (RefName) BranchName ¶
func (n RefName) BranchName() BranchName
type RefType ¶
type RefType int
const ( TypeCommit RefType TypeTree TypeBlob TypeTag )
func (RefType) MarshalText ¶
func (*RefType) UnmarshalText ¶
type RemoteName ¶
type RemoteName string
func (RemoteName) String ¶
func (n RemoteName) String() string
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func SnapshotRepository ¶
func SnapshotRepository(g Git) (Repository, error)
func (Repository) AllRefs ¶
func (r Repository) AllRefs() []Ref
func (Repository) Head ¶
func (r Repository) Head() (BranchName, bool)
func (Repository) LookupBranch ¶
func (r Repository) LookupBranch(name string) (BranchName, bool)
Click to show internal directories.
Click to hide internal directories.