copilot-swe-agent[bot]
4bece1feb4
refactor: ParseCatFileTreeLine returns slices from ReadBytes, remove pre-provided buffers
...
Replace the three caller-provided buffer parameters (modeBuf, fnameBuf, shaBuf)
with internal allocation. Use rd.ReadBytes('\x00') to read mode+fname in one
call and slice the result directly. Allocate sha internally. Update both callers
(catBatchParseTreeEntries and lfs_nogogit.go) to drop the buffer setup.
Co-Authored-By: GitHub Copilot <copilot@github.com >
Agent-Logs-Url: https://github.com/go-gitea/gitea/sessions/43dab9a5-8c12-41c7-8da6-77c268a65ada
Co-authored-by: wxiaoguang <2114189+wxiaoguang@users.noreply.github.com >
2026-04-14 06:49:29 +00:00
copilot-swe-agent[bot]
d284f5c798
refactor: use ParseEntryMode in catBatchParseTreeEntries
...
Replace the manual switch statement for mode parsing with a call to
ParseEntryMode, which already handles all the same cases including edge
cases like "40755" via its fallback logic.
Co-Authored-By: GitHub Copilot <copilot@github.com >
Agent-Logs-Url: https://github.com/go-gitea/gitea/sessions/c93c0d76-8a70-478f-a549-2f120c5f45c4
Co-authored-by: wxiaoguang <2114189+wxiaoguang@users.noreply.github.com >
2026-04-14 06:40:57 +00:00
wxiaoguang
e226720cff
Refactor cat-file batch operations and support --batch-command approach ( #35775 )
...
Replace #34651 and address more problems including fix framework bugs and changing to QueryInfo and QueryContent calls.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2026-01-08 13:37:36 -08:00
wxiaoguang
525265c1a8
Refactor ls-tree and git path related problems ( #35858 )
...
Fix #35852 , the root problem is that the "name" field is heavily abused
(since #6816 , and no way to get a clear fix)
There are still a lot of legacy problems in old code.
Co-authored-by: Giteabot <teabot@gitea.io >
2025-11-05 17:48:38 +00:00