Files
gitocean/modules/git
emilylange cd2c1361c5 fix: keep commit count limit in file history pagination static and not increase with every page
This fixes a regression introduced by 58a4407acb
from 2022 which reintroduced passing `--skip` to `git rev-list` in favor
of the custom skipping reader based on `io.CopyN` from 59d1cc49f1
and then forgetting to also revert the
`--max-count=CommitsRangeSize*Page` math.

Before this commit:

~~~bash
# curl -s "http://localhost:3000/api/v1/repos/forgejo/forgejo/commits?path=templates&page=1" | jq length
50

# curl -s "http://localhost:3000/api/v1/repos/forgejo/forgejo/commits?path=templates&page=2" | jq length
100

# curl -s "http://localhost:3000/api/v1/repos/forgejo/forgejo/commits?path=templates&page=10" | jq length
500
~~~

With this commit applied:

~~~bash
# curl -s "http://localhost:3000/api/v1/repos/forgejo/forgejo/commits?path=templates&page=1" | jq length
50

# curl -s "http://localhost:3000/api/v1/repos/forgejo/forgejo/commits?path=templates&page=2" | jq length
50

# curl -s "http://localhost:3000/api/v1/repos/forgejo/forgejo/commits?path=templates&page=10" | jq length
50
~~~
2024-12-21 23:46:29 +01:00
..
2024-02-26 22:30:27 +01:00
2024-11-24 11:00:06 +00:00
2024-10-09 09:28:37 +00:00
2024-09-16 16:20:40 +02:00
2024-08-18 16:25:13 +02:00
2024-08-12 19:11:09 +02:00
2024-08-12 19:11:09 +02:00
2023-07-12 19:07:29 +02:00
2024-11-05 09:33:15 +01:00
2024-08-12 19:11:09 +02:00
2024-08-12 19:11:09 +02:00
2024-04-08 12:51:27 +02:00
2024-08-12 19:11:09 +02:00
2024-08-12 19:11:09 +02:00

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.