diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-29 10:21:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-29 10:21:05 +0800 |
commit | e151674cfa4255938f974cfb050b5222db77dcf5 (patch) | |
tree | 6b23a3b59643ce9fb385d5a67c213249b14cf113 /models | |
parent | 54dab5aed999c1c3c0dd247de54a9cc2f9e6ebef (diff) | |
download | gitea-e151674cfa4255938f974cfb050b5222db77dcf5.tar.gz gitea-e151674cfa4255938f974cfb050b5222db77dcf5.zip |
Move PushUpdateOptions from models to repofiles (#9124)
Diffstat (limited to 'models')
-rw-r--r-- | models/update.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/models/update.go b/models/update.go index 5e941c22c4..deac91b6dc 100644 --- a/models/update.go +++ b/models/update.go @@ -53,17 +53,6 @@ func ListToPushCommits(l *list.List) *PushCommits { return &PushCommits{l.Len(), commits, "", make(map[string]string), make(map[string]*User)} } -// PushUpdateOptions defines the push update options -type PushUpdateOptions struct { - PusherID int64 - PusherName string - RepoUserName string - RepoName string - RefFullName string - OldCommitID string - NewCommitID string -} - // PushUpdateDeleteTag must be called for any push actions to delete tag func PushUpdateDeleteTag(repo *Repository, tagName string) error { rel, err := GetRelease(repo.ID, tagName) |