GitGetter is a Getter implementation that will download a module from a git repository.
| 24 | // GitGetter is a Getter implementation that will download a module from |
| 25 | // a git repository. |
| 26 | type GitGetter struct { |
| 27 | Detectors []Detector |
| 28 | |
| 29 | // Timeout sets a deadline which all git CLI operations should |
| 30 | // complete within. Defaults to zero which means no timeout. |
| 31 | Timeout time.Duration |
| 32 | } |
| 33 | |
| 34 | var defaultBranchRegexp = regexp.MustCompile(`\s->\sorigin/(.*)`) |
| 35 |
nothing calls this directly
no outgoing calls
no test coverage detected