]> source.dussan.org Git - gitea.git/commit
Use `[git.config]` for reflog cleaning up (#24958)
authorwxiaoguang <wxiaoguang@gmail.com>
Sun, 28 May 2023 01:07:14 +0000 (09:07 +0800)
committerGitHub <noreply@github.com>
Sun, 28 May 2023 01:07:14 +0000 (01:07 +0000)
commit2f149c5c9db97f20fbbc65e32d1f3133048b11a2
tree5ba9cbca56fadf9c89ffc0a96172ee335b14a4fb
parent0d54395fb544d52585046bf0424659cec0626e31
Use `[git.config]` for reflog cleaning up (#24958)

Follow
https://github.com/go-gitea/gitea/pull/24860#discussion_r1200589651

Use `[git.config]` for reflog cleaning up, the new options are more
flexible.

*
https://git-scm.com/docs/git-config#Documentation/git-config.txt-corelogAllRefUpdates
*
https://git-scm.com/docs/git-config#Documentation/git-config.txt-gcreflogExpire

## :warning: BREAKING

The section `[git.reflog]` is now obsolete and its keys have been moved
to the following replacements:
- `[git.reflog].ENABLED` → `[git.config].core.logAllRefUpdates`
- `[git.reflog].EXPIRATION` → `[git.config].gc.reflogExpire`
custom/conf/app.example.ini
docs/content/doc/administration/config-cheat-sheet.en-us.md
modules/git/git.go
modules/setting/git.go
modules/setting/git_test.go