Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DoUpdate = map[string]func(Gpl, string) error{ ".git": func(gpl Gpl, path string) error { return gpl.do(path, "git", "pull", "--ff-only") }, ".svn": func(gpl Gpl, path string) error { return gpl.do(path, "svn", "update") }, ".git/svn": func(gpl Gpl, path string) error { return gpl.do(path, "git", "svn", "rebase") }, ".hg": func(gpl Gpl, path string) error { return gpl.do(path, "hg", "pull", "--update") }, "_darcs": func(gpl Gpl, path string) error { return gpl.do(path, "darcs", "pull") }, }
DoUpdate for will update each repositories
Functions ¶
This section is empty.
Types ¶
type Gpl ¶
type Gpl struct { Trace bool CPU int TargetPaths []string Args []string Stdin io.Reader Stdout io.Writer Stderr io.Writer Exec func(string, string, ...string) (string, error) }
Gpl struct
func (Gpl) DetectRepository ¶
DetectRepository for detecting the kind of repositories from filepath
Click to show internal directories.
Click to hide internal directories.