Documentation
¶
Overview ¶
Package gitwatch provides a simple tool to first clone a set of git repositories to a local directory and then periodically check them all for any updates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRepoPath ¶
GetRepoPath returns the local path of a cached repo from the given cache
Types ¶
type Session ¶
type Session struct { Repositories []string // list of local or remote repository URLs to watch Interval time.Duration // the interval between remote checks Directory string // the directory to store repositories InitialEvent bool // if true, an event for each repo will be emitted upon construction InitialDone chan struct{} // if InitialEvent true, this is pushed to after initial setup done Events chan Event // when a change is detected, events are pushed here // contains filtered or unexported fields }
Session represents a git watch session configuration
Click to show internal directories.
Click to hide internal directories.