Skip to content

[WIP] git: Detect conflict markets in BOTH_ADDED files when staging#50252

Merged
joaomoreno merged 1 commit intomicrosoft:masterfrom
zhuowei:feature/conflict-both-added
Jul 6, 2018
Merged

[WIP] git: Detect conflict markets in BOTH_ADDED files when staging#50252
joaomoreno merged 1 commit intomicrosoft:masterfrom
zhuowei:feature/conflict-both-added

Conversation

@zhuowei
Copy link
Contributor

@zhuowei zhuowei commented May 22, 2018

The existing code only checked for conflict markers for files with BOTH_MODIFIED status; files with BOTH_ADDED status were always detected as conflicting even after conflicts are resolved.

This fixes #44106.


I have only tested this against this testcase in the original issue . I have not tested to see if this breaks existing conflict detection: are there any Git testcases I can run to make sure that I've fixed the issue and that I didn't introduce regressions?

The existing code only checked for conflict markers for files with BOTH_MODIFIED
status; files with BOTH_ADDED status were always detected as conflicting even after
conflicts are resolved.

This fixes microsoft#44106.
@joaomoreno joaomoreno added this to the Backlog milestone May 28, 2018
@joaomoreno joaomoreno added the git GIT issues label May 28, 2018
@joaomoreno joaomoreno merged commit 325a919 into microsoft:master Jul 6, 2018
@joaomoreno joaomoreno modified the milestones: Backlog, July 2018 Jul 6, 2018
@joaomoreno
Copy link
Member

Thanks! 🍻

@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

git GIT issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge conflict warning when there are none

2 participants