The team I am working with would like to use continuous integration to automatically merge two git branches. However we want the continuous integration job to fail if there are merge conflicts, so that the developers can run the merge manually and resolve any issues.
Has anyone had experience of this kind of setup (ideally with TeamCity, but any CI server would be interesting)?