tech-debt: Fix git command stderr handling design #312
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Git command error handling puts stderr into error messages which is fragile and a bad design.
Locations
modules/git/gitcmd/error.go:27- GIT-CMD-STDERR: stderr should not be in error messagemodules/git/catfile_batch.go:34-36- design fragile, needs refactoringmodules/git/parse_treeentry.go:16- function design is not rightmodules/git/repo_branch_gogit.go:18,32- inconsistent behavior with nogogit editionAction Required
Refactor git command error handling to separate stderr from error messages. Fix gogit/nogogit inconsistencies.
Created by Claude Opus 4.6