In the web application I am working on we have a file called application.properties
which looks like this:
#Grails Metadata file
#Thu Aug 27 10:21:00 BST 2015
app.buildDate=2015-08-27 1021
app.buildNumber=4404
app.buildProfile=development
app.grails.version=2.5.1
app.name=demo
app.servlet.version=3.0
app.version=5.0
The file needs to exist for the application to start
The values in this file will increment on each build, but it doesn't really matter to be exact. On every merge/branch switch this file causes merge conflicts. Is there a way to set a git setting that it should always just keep the target or source version (for this exact file)? It doesn't really matter most of the time.