How does git get the list of unmerged paths?
My understanding of git is that when merging it incorporates changes into a file and then adds it to index. If a merge conflict occurs, a file is not added to the index and is left in the working tree with conflict markers. If I run git status
it shows me unmerged paths
for the conflicted files.
How does git get the list of these files? If I run git add
for a conflicted file with markers still in place, it will not be shown as conflicted anymore, so perhaps markers are not identifiers?