[gmx-developers] Bug merging from release to master

Teemu Murtola teemu.murtola at cbr.su.se
Sat Jan 22 12:44:37 CET 2011


Hi,

On Sat, Jan 22, 2011 at 11:10, David van der Spoel <spoel at xray.bmc.uu.se> wrote:
> can I still
> git checkout master
> git merge release-4-5-patches
> after I fixed a bug in the release branch? (in the src/tools dir if that
> matters).

I think that at this point, it should still work fine as long as you have not

  1. renamed files or created new ones
  2. changed the build system
  3. changed files that have been substantially modified in master
(mostly this concerns certain files in the src/gmxlib/trajana/ or
src/gmxlib/selection/ directories)

If you've done some of the above, you'll have to do some manual work,
but the merge should still do most of the work for you as long as you
have not renamed files.

But with git, you can always try it out easily: just do
  git checkout master
  (git pull)
  git merge --no-commit release-4-5-patches
  (resolve any possible conflicts that come from the above three
points and check that it works)
  git commit (-a)
If the merge creates a big mess, you can always do
  git reset --hard HEAD
to get back where you started from, and think of other courses of action.

Teemu



More information about the gromacs.org_gmx-developers mailing list