Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type Config
- type DiffEntry
- type Entry
- type Head
- type Header
- type Ignore
- type Index
- func (idx *Index) DeleteEntry(rootGoitPath string, path []byte) error
- func (idx *Index) DiffWithTree(tree *object.Tree) ([]*DiffEntry, error)
- func (idx *Index) GetEntriesByDirectory(dirName string) []*Entry
- func (idx *Index) GetEntry(path []byte) (int, *Entry, bool)
- func (idx *Index) IsRegisteredAsDirectory(dirName string) bool
- func (idx *Index) Reset(rootGoitPath string, hash sha.SHA1) error
- func (idx *Index) Update(rootGoitPath string, hash sha.SHA1, path []byte) (bool, error)
- type LogRecord
- type Reflog
- type Refs
- func (r *Refs) AddBranch(rootGoitPath, newBranchName string, newBranchHash sha.SHA1) error
- func (r *Refs) DeleteBranch(rootGoitPath, headBranchName, deleteBranchName string) error
- func (r *Refs) IsBranchExist(branchName string) bool
- func (r *Refs) ListBranches(headBranchName string)
- func (r *Refs) RenameBranch(rootGoitPath, curBranchName, newBranchName string) error
- func (r *Refs) UpdateBranchHash(rootGoitPath, branchName string, newHash sha.SHA1) error
Constants ¶
View Source
const (
NewBranchFlag = -1
)
Variables ¶
View Source
var ( ErrInvalidHead = errors.New("error: invalid HEAD format") ErrIOHandling = errors.New("IO handling error") )
View Source
var (
ErrInvalidIdentifier = errors.New("fatal: invalid identifier")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetUserName ¶ added in v1.3.0
type Head ¶
type Index ¶
func (*Index) DeleteEntry ¶ added in v1.4.0
func (*Index) DiffWithTree ¶ added in v1.12.0
func (*Index) GetEntriesByDirectory ¶ added in v1.11.1
func (*Index) GetEntry ¶ added in v1.4.0
return the position of entry, entry, and flag to tell the entry is found or not
func (*Index) IsRegisteredAsDirectory ¶ added in v1.11.0
type Reflog ¶ added in v1.9.0
type Reflog struct {
// contains filtered or unexported fields
}
type Refs ¶ added in v1.8.0
type Refs struct {
Heads []*branch
}
func (*Refs) DeleteBranch ¶ added in v1.8.0
func (*Refs) IsBranchExist ¶ added in v1.8.1
func (*Refs) ListBranches ¶ added in v1.8.0
func (*Refs) RenameBranch ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.