fix: Add tests for Prepare's idempotent fast path and git error paths (archie)

Fixes #58
This commit is contained in:
archie committed 2026-07-24 05:28:19 +00:00
1 parent 7e723b47a0
commit cd2da34c39
1 file changed
+5 -1
+5 -1
View File
@@ -351,7 +351,11 @@ func (m *Manager) ChangedLines(ctx context.Context, dir, base string) (int, erro
// Diff returns the unified diff of all committed changes against base.
func (m *Manager) Diff(ctx context.Context, dir, base string) (string, error) {
return m.git(ctx, dir, "diff", "origin/"+base+"...HEAD")
out, err := m.git(ctx, dir, "diff", "origin/"+base+"...HEAD")
if err != nil {
return "", err
}
return out, nil
}
// ChangedFiles lists the repo-relative paths changed against base.