Skip to content

ralfth/pom-merge-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

pom-merge-driver

Custom Git merge driver for Maven's pom.xml.

If there is a conflict in the project version of the branch to be merged, the conflict will automatically be resolved by keeping our version except for master branch to allow gitflow's release-finish, hotfix-finish and feature-finish work better. Other changes in the file will be merged as usual.

If Git configuration variable "merge.pommerge.keepmasterversion" is set to true, the project version will always be kept even on master branch.

Installation

git-config:

[merge "pommerge"]
        name = A custom merge driver for Maven's pom.xml
        driver = $PATH_TO/mergepom.py %O %A %B

"$PATH_TO" needs to be replaced with the full path to "mergepom.py".

.gitattributes

pom.xml merge=pommerge

About

A Git merge driver for Maven's pom.xml.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages