MCPcopy Index your code
hub / github.com/gogs/gogs / DiscardLocalRepoBranchChanges

Method DiscardLocalRepoBranchChanges

internal/database/repo_editor.go:104–106  ·  view source on GitHub ↗
(branch string)

Source from the content-addressed store, hash-verified

102}
103
104func (r *Repository) DiscardLocalRepoBranchChanges(branch string) error {
105 return discardLocalRepoBranchChanges(r.LocalCopyPath(), branch)
106}
107
108// CheckoutNewBranch checks out to a new branch from the a branch name.
109func (r *Repository) CheckoutNewBranch(oldBranch, newBranch string) error {

Callers 4

UpdateRepoFileMethod · 0.95
GetDiffPreviewMethod · 0.95
DeleteRepoFileMethod · 0.95
UploadRepoFilesMethod · 0.95

Implementers 2

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

Calls 2

LocalCopyPathMethod · 0.95

Tested by

no test coverage detected