]> source.dussan.org Git - gitea.git/commit
Replace `list.List` with slices (#16311)
authorKN4CK3R <admin@oldschoolhack.me>
Mon, 9 Aug 2021 18:08:51 +0000 (20:08 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Aug 2021 18:08:51 +0000 (14:08 -0400)
commitd9ef43a7126ab83af563c1c9b54cdf0092327b2a
treefabc9a9d24d42bb0de6dd9557c9e07e95bd5722b
parent23d438f56524a7c3fc185df66d6d95f797a80eee
Replace `list.List` with slices (#16311)

* Replaced list with slice.

* Fixed usage of pointer to temporary variable.

* Replaced LIFO list with slice.

* Lint

* Removed type check.

* Removed duplicated code.

* Lint

* Fixed merge.

Co-authored-by: 6543 <6543@obermui.de>
29 files changed:
models/commit.go [new file with mode: 0644]
models/commit_status.go
models/gpg_key_commit_verification.go
models/issue_comment.go
models/pull_sign.go
models/user.go
modules/git/commit.go
modules/git/repo.go
modules/git/repo_commit.go
modules/git/repo_commit_test.go
modules/git/repo_compare.go
modules/repository/commits.go
modules/repository/commits_test.go
modules/templates/helper.go
routers/api/v1/repo/commits.go
routers/api/v1/repo/pull.go
routers/web/repo/blame.go
routers/web/repo/commit.go
routers/web/repo/compare.go
routers/web/repo/pull.go
routers/web/repo/wiki.go
services/mirror/mirror_pull.go
services/pull/pull.go
services/repository/push.go
templates/mail/issue/default.tmpl
templates/repo/commits_list.tmpl
templates/repo/commits_list_small.tmpl
templates/repo/issue/view_content/comments.tmpl
templates/user/dashboard/feeds.tmpl