You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/repository
Şahin Akkaya 875f5ea6d8
Implement code frequency graph (#29191)
### Overview
This is the implementation of Code Frequency page. This feature was
mentioned on these issues: #18262, #7392.


It adds another tab to Activity page called Code Frequency. Code
Frequency tab shows additions and deletions over time since the
repository existed.


Before:
<img width="1296" alt="image"
src="https://github.com/go-gitea/gitea/assets/32161460/2603504f-aee7-4929-a8c4-fb3412a7a0f6">

After:
<img width="1296" alt="image"
src="https://github.com/go-gitea/gitea/assets/32161460/58c03721-729f-4536-a663-9f337f240963">

---


#### Features
- See additions deletions over time since repository existed
- Click on "Additions" or "Deletions" legend to show only one type of
contribution
- Use the same cache from Contributors page so that the loading of data
will be fast once it is cached by visiting either one of the pages

---------

Co-authored-by: Giteabot <teabot@gitea.io>
12 months ago
..
archiver Simplify how git repositories are opened (#28937) 1 year ago
files Fix content size does not match error when uploading lfs file (#29259) 12 months ago
adopt.go Start to migrate from `util.OptionalBool` to `optional.Option[bool]` (#29329) 12 months ago
adopt_test.go Use more specific test methods (#24265) 2 years ago
avatar.go Improve avatar uploading / resizing / compressing, remove Fomantic card module (#24653) 2 years ago
avatar_test.go Use context parameter in services/repository (#23186) 2 years ago
branch.go Start to migrate from `util.OptionalBool` to `optional.Option[bool]` (#29329) 12 months ago
cache.go Always enable caches (#28527) 1 year ago
check.go Update tool dependencies (#29030) 1 year ago
collaboration.go Fix `DeleteCollaboration` transaction behaviour (#28886) 1 year ago
collaboration_test.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
commit.go Show branches and tags that contain a commit (#25180) 2 years ago
contributors_graph.go Implement code frequency graph (#29191) 12 months ago
contributors_graph_test.go Implement contributors graph (#27882) 12 months ago
create.go Simplify how git repositories are opened (#28937) 1 year ago
create_test.go bump to use go 1.22 (#29119) 12 months ago
delete.go Use db.Find instead of writing methods for every object (#28084) 1 year ago
delete_test.go Delete repos of org when purge delete user (#27273) 1 year ago
fork.go Simplify how git repositories are opened (#28937) 1 year ago
fork_test.go Add option to prohibit fork if user reached maximum limit of repositories (#21848) 2 years ago
hooks.go Simplify how git repositories are opened (#28937) 1 year ago
lfs.go Simplify how git repositories are opened (#28937) 1 year ago
lfs_test.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
push.go Do not use lower tag names to find releases/tags (#29261) 12 months ago
repository.go Remove unnecessary parameter (#27671) 1 year ago
repository_test.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
review.go Use context parameter in services/repository (#23186) 2 years ago
review_test.go Use context parameter in services/repository (#23186) 2 years ago
setting.go Fix an actions schedule bug (#28942) 1 year ago
template.go Move notification interface to services layer (#26915) 1 year ago
transfer.go Move some repository transfer functions to service layer (#28855) 1 year ago
transfer_test.go Move some repository transfer functions to service layer (#28855) 1 year ago