Documentation ¶
Index ¶
- Variables
- func Import(repo *git.Repo, db meta.DB) error
- func ReadAllBranches(repo *git.Repo) (map[string]meta.Branch, error)
- func ReadBranch(repo *git.Repo, branchName string) (meta.Branch, bool)
- func ReadBranchState(repo *git.Repo, branch string, trunk bool) (meta.BranchState, error)
- func ReadRepository(repo *git.Repo) (meta.Repository, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRepoNotInitialized = errors.Sentinel("this repository not initialized: please run `av init`")
Functions ¶
func ReadAllBranches ¶
ReadAllBranches fetches all branch metadata stored in the git repository. It returns a map where the key is the name of the branch.
func ReadBranch ¶
ReadBranch loads information about the branch from the git repository. Returns the branch metadata and a boolean indicating if the branch metadata already existed and was loaded. If the branch metadata does not exist, a useful default is returned.
func ReadBranchState ¶
func ReadRepository ¶
func ReadRepository(repo *git.Repo) (meta.Repository, error)
ReadRepository reads repository metadata from the git repo. Returns the metadata and a boolean indicating if the metadata was found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.