MCPcopy Create free account
hub / github.com/google/git-appraise / Fetch

Method Fetch

repository/git.go:975–979  ·  view source on GitHub ↗

Fetch fetches from the given remote using the supplied refspecs.

(remote string, refspecs ...string)

Source from the content-addressed store, hash-verified

973
974// Fetch fetches from the given remote using the supplied refspecs.
975func (repo *GitRepo) Fetch(remote string, refspecs ...string) error {
976 args := []string{"fetch", remote}
977 args = append(args, refspecs...)
978 return repo.runGitCommandInline(args...)
979}
980
981// PushNotes pushes git notes to a remote repo.
982func (repo *GitRepo) PushNotes(remote, notesRefPattern string) error {

Callers 2

PullNotesMethod · 0.95

Calls 1

runGitCommandInlineMethod · 0.95

Tested by

no test coverage detected