Documentation
¶
Index ¶
- Constants
- type Git
- func (g *Git) GetConfig(key string) (string, error)
- func (g *Git) GetHead() (string, error)
- func (g *Git) GetHeadSHA1() (string, error)
- func (g *Git) ListChangedFiles(path string, baseSha1 string) (amFiles []string, dFiles []string, err error)
- func (g *Git) ListTrackedFiles(path string) ([]string, error)
- func (g *Git) PopHead(head string) error
- func (g *Git) PushHead(head string) (string, error)
- func (g *Git) SetConfig(key, value string) error
Constants ¶
View Source
const GitConfigPrefix = "git-syncer"
GitConfigPrefix prefix in git config
View Source
const ProjectConfigPath = "./.git-syncer-config"
ProjectConfigPath project level config file
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct {
}
Git gitter implementation
func (*Git) GetHeadSHA1 ¶
GetHeadSHA1 get repo head sha1
func (*Git) ListChangedFiles ¶
func (g *Git) ListChangedFiles(path string, baseSha1 string) (amFiles []string, dFiles []string, err error)
ListChangedFiles list changed files between baseSha1 and head
func (*Git) ListTrackedFiles ¶
ListTrackedFiles list all tracked files
Click to show internal directories.
Click to hide internal directories.