MCPcopy Create free account
hub / github.com/gogs/gogs / UpdateLocalCopyBranch

Method UpdateLocalCopyBranch

internal/database/repo.go:699–701  ·  view source on GitHub ↗

UpdateLocalCopyBranch makes sure local copy of repository in given branch is up-to-date.

(branch string)

Source from the content-addressed store, hash-verified

697
698// UpdateLocalCopyBranch makes sure local copy of repository in given branch is up-to-date.
699func (r *Repository) UpdateLocalCopyBranch(branch string) error {
700 return UpdateLocalCopyBranch(r.RepoPath(), r.LocalCopyPath(), branch, false)
701}
702
703// PatchPath returns corresponding patch file path of repository by given issue ID.
704func (r *Repository) PatchPath(index int64) (string, error) {

Callers 6

UpdateRepoFileMethod · 0.95
GetDiffPreviewMethod · 0.95
DeleteRepoFileMethod · 0.95
UploadRepoFilesMethod · 0.95
CreateNewBranchMethod · 0.95
testPatchMethod · 0.80

Implementers 2

Repositoryinternal/database/repo.go
mailerRepointernal/database/issue_mail.go

Calls 3

RepoPathMethod · 0.95
LocalCopyPathMethod · 0.95
UpdateLocalCopyBranchFunction · 0.85

Tested by

no test coverage detected