]> source.dussan.org Git - gitea.git/commit
Refactor "dump" sub-command (#30240)
authorwxiaoguang <wxiaoguang@gmail.com>
Wed, 3 Apr 2024 02:16:46 +0000 (10:16 +0800)
committerGitHub <noreply@github.com>
Wed, 3 Apr 2024 02:16:46 +0000 (02:16 +0000)
commit654cfd1dfbd3f3f1d94addee50b6fe2b018a49c3
tree61dc77223994809dfeb3183351a37f19e3563839
parentb28d3a4218b1338ce6f683d11993081b722bae0a
Refactor "dump" sub-command (#30240)

Major changes:

* Move some functions like "addReader" / "isSubDir" /
"addRecursiveExclude" to a separate package, and add tests
* Clarify the filename&dump type logic and add tests
* Clarify the logger behavior and remove FIXME comments

Co-authored-by: Giteabot <teabot@gitea.io>
cmd/dump.go
modules/dump/dumper.go [new file with mode: 0644]
modules/dump/dumper_test.go [new file with mode: 0644]
modules/setting/log.go
modules/timeutil/timestamp.go
modules/util/util.go