gitea/modules/util
6543 0d1444751f
[API] Add pagination to ListBranches (#14524)
* make PaginateUserSlice generic -> PaginateSlice

* Add pagination to ListBranches

* add skip, limit to Repository.GetBranches()

* Move routers/api/v1/utils/utils PaginateSlice -> modules/util/paginate.go

* repo_module.GetBranches paginate

* fix & rename & more logging

* better description

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: a1012112796 <1012112796@qq.com>
2021-02-03 20:06:13 +01:00
..
compare.go migrate from com.* to alternatives (#14103) 2020-12-25 11:59:32 +02:00
copy.go migrate from com.* to alternatives (#14103) 2020-12-25 11:59:32 +02:00
paginate.go [API] Add pagination to ListBranches (#14524) 2021-02-03 20:06:13 +01:00
paginate_test.go [API] Add pagination to ListBranches (#14524) 2021-02-03 20:06:13 +01:00
path.go Add StatDir and replace com.StatDir (#14099) 2020-12-22 07:40:57 +08:00
remove.go
sanitize.go Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
sanitize_test.go
shellquote.go
shellquote_test.go
timer.go
url.go
util.go Issue and Pulls lists rework (#13594) 2020-11-25 13:20:40 +02:00
util_test.go