Skip to content

Preserve working files when git merge-file fails - #7

Merged
lydakis merged 1 commit into
mainfrom
graft/merge-error-safety
Oct 26, 2026
Merged

lydakis merged 1 commit into
mainfrom
graft/merge-error-safety

Conversation

@lydakis

@lydakis lydakis commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Summary

Only replace working files for documented git merge-file results (exit 0 through 127). Errors such as Unix exit 255 leave working bytes untouched. Add mount-independent regression tests using real Git for error preservation, clean merges, and conflicts including the conflict-count cap.

Validation

Implementation task ran cargo test --lib merge_file -- --nocapture: 3 passed. Final validation and CI are still to be confirmed; opening as a draft so review can start now.

Landed with gft land from the copy merge-error-safety.

@lydakis
lydakis marked this pull request as ready for review October 26, 2026 04:45
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T04:45:55.370500Z 6795e07 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-26T04:47:16.694267Z 6795e07 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lydakis
lydakis merged commit 5b8e98f into main Oct 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant