Documentation ¶
Index ¶
- func DecodePathBytes(path []byte) []byte
- type Environment
- type Filesystem
- func (f *Filesystem) Cleanup() error
- func (f *Filesystem) DecodePathname(path string) string
- func (f *Filesystem) EachObject(fn func(Object) error) error
- func (f *Filesystem) LFSObjectDir() string
- func (f *Filesystem) LogDir() string
- func (f *Filesystem) ObjectExists(oid string, size int64) bool
- func (f *Filesystem) ObjectPath(oid string) (string, error)
- func (f *Filesystem) ObjectPathname(oid string) string
- func (f *Filesystem) ObjectReferencePaths(oid string) []string
- func (f *Filesystem) TempDir() string
- type Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePathBytes ¶
*
- Revert non ascii chracters escaped by git or windows (as octal sequences \000) back to bytes.
Types ¶
type Environment ¶
Environment is a copy of a subset of the interface github.com/git-lfs/git-lfs/config.Environment.
For more information, see config/environment.go.
type Filesystem ¶
type Filesystem struct { GitStorageDir string // parent of objects/lfs (may be same as GitDir but may not) LFSStorageDir string // parent of lfs objects and tmp dirs. Default: ".git/lfs" ReferenceDirs []string // alternative local media dirs (relative to clone reference repo) // contains filtered or unexported fields }
func New ¶
func New(env Environment, gitdir, workdir, lfsdir string) *Filesystem
New initializes a new *Filesystem with the given directories. gitdir is the path to the bare repo, workdir is the path to the repository working directory, and lfsdir is the optional path to the `.git/lfs` directory.
func (*Filesystem) Cleanup ¶
func (f *Filesystem) Cleanup() error
func (*Filesystem) DecodePathname ¶
func (f *Filesystem) DecodePathname(path string) string
func (*Filesystem) EachObject ¶
func (f *Filesystem) EachObject(fn func(Object) error) error
func (*Filesystem) LFSObjectDir ¶
func (f *Filesystem) LFSObjectDir() string
func (*Filesystem) LogDir ¶
func (f *Filesystem) LogDir() string
func (*Filesystem) ObjectExists ¶
func (f *Filesystem) ObjectExists(oid string, size int64) bool
func (*Filesystem) ObjectPath ¶
func (f *Filesystem) ObjectPath(oid string) (string, error)
func (*Filesystem) ObjectPathname ¶
func (f *Filesystem) ObjectPathname(oid string) string
func (*Filesystem) ObjectReferencePaths ¶
func (f *Filesystem) ObjectReferencePaths(oid string) []string
func (*Filesystem) TempDir ¶
func (f *Filesystem) TempDir() string
Click to show internal directories.
Click to hide internal directories.