fix: Add tests for Prepare's idempotent fast path and git error paths (archie)
Fixes #58
This commit is contained in:
1 parent
7e723b47a0
commit
cd2da34c39
1 file changed
+5
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user