Documentation
¶
Index ¶
- func FileExists(path string) error
- func KVLMParse(data []byte) string
- func KVLMSerialize(data string) string
- func ObjectWrite(obj GitObject, repo *GitRepo)
- func RepoDefaultConfig(path string)
- func RepoDir(gitrepo *GitRepo, mkdir bool, path ...string) (string, error)
- func RepoFile(gitrepo *GitRepo, mkdir bool, path ...string) string
- func RepoPath(gitrepo *GitRepo, path ...string) string
- func TreeParse(data []byte) []string
- func TreeSerialize(data []string) string
- func WriteToRepoFile(filepath string, content string)
- type BaseGitObject
- type GitBlob
- type GitCommit
- type GitObject
- type GitRepo
- type GitTree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func KVLMSerialize ¶
func ObjectWrite ¶
func RepoDefaultConfig ¶
func RepoDefaultConfig(path string)
func TreeSerialize ¶
func WriteToRepoFile ¶
Types ¶
type BaseGitObject ¶
type BaseGitObject struct {
ObjType string
}
func (*BaseGitObject) Deserialize ¶
func (b *BaseGitObject) Deserialize(data []byte)
func (*BaseGitObject) Init ¶
func (b *BaseGitObject) Init()
func (*BaseGitObject) Serialize ¶
func (b *BaseGitObject) Serialize() string
type GitBlob ¶
type GitBlob struct {
BaseGitObject
BlobData []byte
}
func NewGitBlob ¶
func (*GitBlob) Deserialize ¶
type GitCommit ¶
type GitCommit struct {
BaseGitObject
Kvlm string
}
func NewGitCommit ¶
func (*GitCommit) Deserialize ¶
type GitRepo ¶
type GitRepo struct {
// contains filtered or unexported fields
}
func NewEmptyGitRepo ¶
func NewEmptyGitRepo() *GitRepo
func RepoCreate ¶
Click to show internal directories.
Click to hide internal directories.