Skip to content

fix: handle discard conflict with delete#1994

Merged
CKolkey merged 1 commit into
NeogitOrg:masterfrom
disrupted:discard-conflict
Jul 22, 2026
Merged

fix: handle discard conflict with delete#1994
CKolkey merged 1 commit into
NeogitOrg:masterfrom
disrupted:discard-conflict

Conversation

@disrupted

@disrupted disrupted commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

When discarding a conflicted file via x and choosing the side that deleted the file, Neogit now runs git rm <file> instead of git checkout --{ours,theirs} <file> (which fails because there's no file content to check out on the deleted side).

@disrupted
disrupted marked this pull request as ready for review July 22, 2026 07:35
@CKolkey
CKolkey merged commit 2043096 into NeogitOrg:master Jul 22, 2026
2 of 6 checks passed
@disrupted
disrupted deleted the discard-conflict branch July 22, 2026 11:39
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.

2 participants