From: Thomas Koch <thomas@koch.ro>
To: git@vger.kernel.org
Subject: Merge conflicts with version numbers in release branches
Date: Sun, 7 Apr 2013 17:49:10 +0200 [thread overview]
Message-ID: <201304071749.10912.thomas@koch.ro> (raw)
Hi,
it's a common problem[1,2,3] in Maven (Java) projects and probably in other
environments too: You have the version number of your project written in the
pom.xml. When one merges changes upwards from the maint branche to master, the
version numbers in maint and master are different and cause a merge conflict.
You might think of solutions for easy cases, but think about several releases
from the maint branches and several major releases in the same time frame and
you will run into merge conflicts.
Still, do you know any best practice how to deal with these? Do you know
examples from other language environments that also keep the version numbers
under version control and suffer from the same problem? Or is the version
number somehow taken from the git tag in your environment?
[1] http://brettporter.wordpress.com/2012/02/02/automatically-resolving-
version-conflicts-in-maven-poms-when-merging/
[2] http://bxm-dev.blogspot.ch/2012/05/gitflow-and-maven.html
[3] http://stackoverflow.com/questions/3555160/merging-changes-from-a-maven-
relase-branch-yields-conflicts-due-to-changed-versi
Thank you,
Thomas Koch, http://www.koch.ro
next reply other threads:[~2013-04-07 15:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-07 15:49 Thomas Koch [this message]
2013-05-29 9:09 ` Merge conflicts with version numbers in release branches Enrico Weigelt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201304071749.10912.thomas@koch.ro \
--to=thomas@koch.ro \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).