When rebasing with git, I'm interested to open the files that have merge conflicts.
I can do this with:
vi `git diff --name-status --diff-filter=U | awk '{print $2}'`
but if I alias that:
alias gdn="vi $(git diff --name-status --diff-filter=U | awk '{print $2}')"
It won't work. I've also tried to write this as a function, to no avail.
What is the correct syntax?
edit: this answer seems to predicate on the difference between how aliases handle newlines, vs. how the prompt handles them.