lfs

package
v0.0.0-...-350c570 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(filename string) error

Add a file to the index

func AddAndCommit

func AddAndCommit(filename, msg string) (string, error)

Add and commit file

func AddAndCommitData

func AddAndCommitData(path, msg string) (string, error)

Adds and commits data found in path

func AddData

func AddData(path string) (changes bool, repositoryLocation string, err error)

Add the data at the path to the index. Will return true if there's anything to be committed.

func GetHead

func GetHead(hostpath string) (string, error)

Get the head id of the repository found at hostpath

func PrintDiff

func PrintDiff(path, id string) (string, error)

func Reset

func Reset(path, id string) error

func StartServer

func StartServer(mountDir string) error

Starts a git-lfs server in a Docker container

func Track

func Track(filename, repositoryLocation string) (string, error)

git lfs track Since the git-lfs devs discourage using git-lfs in go projects we're just calling the git-lfs CLI.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL