Skip to content

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

Merged
João Moreno (joaomoreno) merged 1 commit into
microsoft:masterfrom
zhuowei:feature/conflict-both-added
Jul 6, 2018
Merged

João Moreno (joaomoreno) merged 1 commit into
microsoft:masterfrom
zhuowei:feature/conflict-both-added

Conversation

@zhuowei

@zhuowei zhuowei commented May 22, 2018 •

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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