Skip to content

refactor: remove unnecessary git command wrapper functions - #38531

Merged
wxiaoguang merged 4 commits into
go-gitea:mainfrom
wxiaoguang:refactor-gitrepo
Jul 20, 2026
Merged

wxiaoguang merged 4 commits into
go-gitea:mainfrom
wxiaoguang:refactor-gitrepo

Conversation

@wxiaoguang

@wxiaoguang wxiaoguang commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

Removed gitrepo.RunCmd* functions, because gitcmd.Command works with Repository directly.

Move some "local filesystem" related function into "localfs.go"

Assisted by AI

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 19, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 19, 2026
@lunny lunny added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Jul 19, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 19, 2026
@wxiaoguang
wxiaoguang enabled auto-merge (squash) July 20, 2026 03:04
@wxiaoguang
wxiaoguang merged commit 775e3bd into go-gitea:main Jul 20, 2026
23 checks passed
@GiteaBot GiteaBot added this to the 28.0.0 milestone Jul 20, 2026
@wxiaoguang
wxiaoguang deleted the refactor-gitrepo branch July 20, 2026 03:18
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jul 21, 2026
* 'main' of https://github.com/go-gitea/gitea: (44 commits)
  fix(actions): support `matrix` when evaluating workflow `if` expression (go-gitea#38474)
  feat(repo): prioritize well-known READMEs and optimize discovery (go-gitea#38532)
  refactor: remove Path field from git.Repository (go-gitea#38552)
  refactor: make git package handle all git operations (go-gitea#38543)
  chore(renovate): group all dependency updates into one weekly PR (go-gitea#38547)
  chore(deps): update dependency @codemirror/lang-markdown to v6.5.1 (go-gitea#38546)
  fix: revert git clone http redirection forbidden (go-gitea#38530)
  chore(deps): update dependencies (go-gitea#38538)
  test(e2e): deterministically wait for event stream in logout propagation test (go-gitea#38535)
  chore(deps): update python dependencies (go-gitea#38539)
  chore(deps): update eslint, remove eslint-plugin-sonarjs (go-gitea#38536)
  refactor: prepare to decouple the "model migration" package and "models" package (go-gitea#38533)
  refactor: remove unnecessary git command wrapper functions (go-gitea#38531)
  [skip ci] Updated translations via Crowdin
  refactor: git repo and relative path handling (go-gitea#38522)
  refactor: clean up fragile diff render templates, use backend typed structs (go-gitea#38517)
  fix(actions): coerce workflow_dispatch boolean inputs to native types (go-gitea#38472)
  refactor: correct git repo design and fix some legacy problems (go-gitea#38512)
  fix: make the merge box button red if some checks fail (go-gitea#38508)
  fix: clean up orphaned user-keyed tables in deleteUser (go-gitea#38511)
  ...

# Conflicts:
#	templates/repo/wiki/revision.tmpl
#	templates/repo/wiki/view.tmpl
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jul 21, 2026
* main: (44 commits)
  fix(actions): support `matrix` when evaluating workflow `if` expression (go-gitea#38474)
  feat(repo): prioritize well-known READMEs and optimize discovery (go-gitea#38532)
  refactor: remove Path field from git.Repository (go-gitea#38552)
  refactor: make git package handle all git operations (go-gitea#38543)
  chore(renovate): group all dependency updates into one weekly PR (go-gitea#38547)
  chore(deps): update dependency @codemirror/lang-markdown to v6.5.1 (go-gitea#38546)
  fix: revert git clone http redirection forbidden (go-gitea#38530)
  chore(deps): update dependencies (go-gitea#38538)
  test(e2e): deterministically wait for event stream in logout propagation test (go-gitea#38535)
  chore(deps): update python dependencies (go-gitea#38539)
  chore(deps): update eslint, remove eslint-plugin-sonarjs (go-gitea#38536)
  refactor: prepare to decouple the "model migration" package and "models" package (go-gitea#38533)
  refactor: remove unnecessary git command wrapper functions (go-gitea#38531)
  [skip ci] Updated translations via Crowdin
  refactor: git repo and relative path handling (go-gitea#38522)
  refactor: clean up fragile diff render templates, use backend typed structs (go-gitea#38517)
  fix(actions): coerce workflow_dispatch boolean inputs to native types (go-gitea#38472)
  refactor: correct git repo design and fix some legacy problems (go-gitea#38512)
  fix: make the merge box button red if some checks fail (go-gitea#38508)
  fix: clean up orphaned user-keyed tables in deleteUser (go-gitea#38511)
  ...
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Oct 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/refactoring Existing code has been cleaned up. There should be no new functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

⌂