For example:
$ git status
On branch master
You have unmerged paths.
(fix conflicts and run "git commit")
(use "git merge --abort" to abort the merge)
Unmerged paths:
(use "git add <file>..." to mark resolution)
both modified: test.txt
$ git ls-files
test.txt
test.txt
test.txt
Is there any way to make it list files of this kind only once too? I only need the file names.