I have a wordlist file in git that I update from multiple machines and merge as needed. When I merge I usually get conflicts that are easy to resolve algorithmically: since it should stay sorted alphabetically, just accept all additions and deletions from both sides of the merge and sort the result.
For example:
APIs
<<<<<<< HEAD
arg
=======
apps
>>>>>>> master
attr
should be resolved to:
APIs
apps
arg
attr
Is there any way I can automate this process away so git always does the right thing for this file and never reports conflicts?