refactor: give internal/gitexec the run and output disposition, collapse the five git helpers #808
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#808
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Implements the design accepted in ADR 0056 (0056-one-git-runner-owns-output-disposition).
internal/gitexec gains one run entry that owns output disposition, with an explicit mode per stream: Capture (buffer and return), Stream (to the terminal), Tee (both). The five run helpers in internal/git (RunGitAuthDirWithStderr, RunGitAuthDirCaptureStderr, RunGitAuthDirCaptureStderrOnly, RunGitAuthDirWithCredentials, RunGitDirWithStderr) become thin wrappers that pass a disposition and keep only their credential, SSH, or plain concern.
Acceptance:
Refs ADR 0056. Decision recorded in #806.