Documentation
¶
Index ¶
- Constants
- func GetCommitObject(hash string) (*commitObject, error)
- func GetCommitObjectFromString(s string) (*commitObject, error)
- func GetPrefixObject(hash string) (*prefixObject, error)
- func GetPrefixObjectFromString(s string) (*prefixObject, error)
- func GetSnapshotObject(hash string) (*snapshotObject, error)
- func GetSnapshotObjectFromString(s string) (*snapshotObject, error)
- func GetTreeObject(hash string) (*treeObject, error)
- func GetTreeObjectFromString(s string) (*treeObject, error)
- func Prefix() string
- func SnapshotCheckout(path, hash string, fWrite func(hash, filename string, perm os.FileMode)) error
- func SnapshotList(hash string, fFile func(entry SnapshotEntry, base string), ...) error
- func SnapshotStatus(path, hash string) error
- func StoreCommitObject(message, branch, snapshot string, warmParents, coldParents []string, ...) (hash string, empty bool, err error)
- func StorePrefixObject(commitHash string) error
- func StoreSnapshotObject(path string, addFn func(filename string) (string, error)) (hash string, err error)
- type SnapshotEntry
Constants ¶
View Source
const DirectoryMode = "040000"
View Source
const FileModeNoPerm = "100000" // Permissions still need to be ORred in
Variables ¶
This section is empty.
Functions ¶
func GetCommitObject ¶
Return commit object based on hash
func GetCommitObjectFromString ¶
Get commit object from string contents
func GetPrefixObject ¶
Get prefix object based on hash
func GetPrefixObjectFromString ¶
Get prefix object from string contents
func GetSnapshotObject ¶
Return snapshot object based on hash
func GetSnapshotObjectFromString ¶
Return snapshot object from string contents
func GetTreeObject ¶
Return tree object based on hash
func GetTreeObjectFromString ¶
Return tree object from string contents
func SnapshotCheckout ¶
func SnapshotList ¶
func SnapshotList(hash string, fFile func(entry SnapshotEntry, base string), fEnteringDir func(base string), fLeavingDir func(base string, entries []SnapshotEntry)) error
func SnapshotStatus ¶
func StoreCommitObject ¶
func StorePrefixObject ¶
Types ¶
type SnapshotEntry ¶
type SnapshotEntry struct { Mode string `json:"mode"` // *nix filemode Name string `json:"name"` // filename Blob string `json:"blob"` // pointer to blob }
func (*SnapshotEntry) IsDirectory ¶
func (sse *SnapshotEntry) IsDirectory() bool
Click to show internal directories.
Click to hide internal directories.