Versions in this module Expand all Collapse all v0 v0.1.0 Apr 14, 2024 v0.0.10 Apr 14, 2024 Changes in this version + var ErrUnknownVCS = errors.New("unknown VCS") + func AllFiles(path string) ([]string, error) + func DetectRepo(path string) vcs.Type + func FieldsThroughDelim(flds [][]byte, delim byte, idx int) (int, string) + func RelPath(repo Repo, path string) string + type Commit struct + Author string + Date string + Email string + Message string + Rev string + type FileStatus int32 + const Added + const Conflicted + const Deleted + const FileStatusN + const Modified + const Stored + const Untracked + const Updated + func FileStatusValues() []FileStatus + func (i *FileStatus) SetInt64(in int64) + func (i *FileStatus) SetString(s string) error + func (i *FileStatus) UnmarshalText(text []byte) error + func (i FileStatus) Desc() string + func (i FileStatus) Int64() int64 + func (i FileStatus) MarshalText() ([]byte, error) + func (i FileStatus) String() string + func (i FileStatus) Values() []enums.Enum + type Files map[string]FileStatus + func (fl *Files) Status(repo Repo, fname string) FileStatus + type GitRepo struct + func (gr *GitRepo) Add(fname string) error + func (gr *GitRepo) Blame(fname string) ([]byte, error) + func (gr *GitRepo) CharToStat(stat byte) FileStatus + func (gr *GitRepo) CommitDesc(rev string, diffs bool) ([]byte, error) + func (gr *GitRepo) CommitFile(fname string, message string) error + func (gr *GitRepo) Delete(fname string) error + func (gr *GitRepo) DeleteRemote(fname string) error + func (gr *GitRepo) FileContents(fname string, rev string) ([]byte, error) + func (gr *GitRepo) Files() (Files, error) + func (gr *GitRepo) Log(fname string, since string) (Log, error) + func (gr *GitRepo) Move(oldpath, newpath string) error + func (gr *GitRepo) RevertFile(fname string) error + func (gr *GitRepo) Status(fname string) (FileStatus, string) + type Log []*Commit + func (lg *Log) Add(rev, date, author, email, message string) *Commit + type Repo interface + Add func(fname string) error + Blame func(fname string) ([]byte, error) + CommitDesc func(rev string, diffs bool) ([]byte, error) + CommitFile func(fname string, message string) error + Delete func(fname string) error + DeleteRemote func(fname string) error + FileContents func(fname string, rev string) ([]byte, error) + Files func() (Files, error) + Log func(fname string, since string) (Log, error) + Move func(oldpath, newpath string) error + RevertFile func(fname string) error + Status func(fname string) (FileStatus, string) + func NewRepo(remote, local string) (Repo, error) + type SvnRepo struct + func (gr *SvnRepo) Add(fname string) error + func (gr *SvnRepo) Blame(fname string) ([]byte, error) + func (gr *SvnRepo) CharToStat(stat byte) FileStatus + func (gr *SvnRepo) CommitDesc(rev string, diffs bool) ([]byte, error) + func (gr *SvnRepo) CommitFile(fname string, message string) error + func (gr *SvnRepo) Delete(fname string) error + func (gr *SvnRepo) DeleteRemote(fname string) error + func (gr *SvnRepo) FileContents(fname string, rev string) ([]byte, error) + func (gr *SvnRepo) Files() (Files, error) + func (gr *SvnRepo) Log(fname string, since string) (Log, error) + func (gr *SvnRepo) Move(oldpath, newpath string) error + func (gr *SvnRepo) RevertFile(fname string) error + func (gr *SvnRepo) Status(fname string) (FileStatus, string)