Task summary
Add focused unit tests for getBranchName() in src/git/diff.ts, including the fallback path that should return "unknown" when git commands fail.
Why this is a good first issue
The function is small, behavior is clear, and there is already an established test style in tests/git-diff.test.mjs to follow.
Suggested files or areas
src/git/diff.ts
tests/git-diff.test.mjs
Acceptance criteria
Extra context
getRepoRoot() is already tested in tests/git-diff.test.mjs; use that file’s temp-repo helper pattern for consistency.
Task summary
Add focused unit tests for
getBranchName()insrc/git/diff.ts, including the fallback path that should return"unknown"when git commands fail.Why this is a good first issue
The function is small, behavior is clear, and there is already an established test style in
tests/git-diff.test.mjsto follow.Suggested files or areas
src/git/diff.tstests/git-diff.test.mjsAcceptance criteria
getBranchName()returns the current branch in a temp repo."unknown".git/difftests passing.Extra context
getRepoRoot()is already tested intests/git-diff.test.mjs; use that file’s temp-repo helper pattern for consistency.