Documentation ¶
Index ¶
- Constants
- func Add(dir string, args ...string) ([]byte, error)
- func ContentLocation(repo *git.Repository, key string) (string, error)
- func Init(dir string, args ...string) ([]byte, error)
- func IsAnnexFile(blob *git.Blob) bool
- func IsBare(repo *git.Repository) (bool, error)
- func MD5(dir string) ([]byte, error)
- func SetAddUnlocked(dir string) ([]byte, error)
- func SetAnnexSizeFilter(dir string, size int64) ([]byte, error)
- func Sync(dir string, args ...string) ([]byte, error)
- func Uninit(dir string, args ...string) ([]byte, error)
- func Upgrade(dir string) ([]byte, error)
- func Worm(dir string) ([]byte, error)
- type AFile
- type AnnexFileNotFound
Constants ¶
View Source
const ( BYTE = 1.0 KILOBYTE = 1024 * BYTE MEGABYTE = 1024 * KILOBYTE GIGABYTE = 1024 * MEGABYTE TERABYTE = 1024 * GIGABYTE )
Variables ¶
This section is empty.
Functions ¶
func ContentLocation ¶ added in v0.5.5
ContentLocation returns the location of the content file for a given annex key. The returned path is relative to the repository git directory.
func IsAnnexFile ¶ added in v0.5.5
func IsAnnexFile(blob *git.Blob) bool
func SetAddUnlocked ¶
Types ¶
type AnnexFileNotFound ¶
type AnnexFileNotFound struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.