Merging hammer in master: conflict on gmock
Hi Danny,
As of now, git checkout master ; git merge origin/hammer gets a conflict on gmock
When we last discussed it you found that git merge -m 1 was a solution. But I'm not sure I fully understand the consequences.
Cheers
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
Hi Loic,
this one is a tricky one. I didn't find a smooth/automatic solution yet.
This seems to work:
git checkout master
git merge --no-ff origin/hammer
git mergetool
-> for the conflict: select 'local' for src/gmock (this should keep
the changes im master and ignore changes from hammer)
git commit
You may have to check if the result is what's intended.
Danny
Am 09.03.2015 um 15:18 schrieb Loic Dachary:
Quoted 10 lines
Hi Danny,
As of now, git checkout master ; git merge origin/hammer gets a conflict on gmock
When we last discussed it you found that git merge -m 1 was a solution. But I'm not sure I fully understand the consequences.
Cheers
Quoted 11 lines · Danny Al-Gaaf
Hi Loic,
this one is a tricky one. I didn't find a smooth/automatic solution yet.
This seems to work:
git checkout master
git merge --no-ff origin/hammer
git mergetool
-> for the conflict: select 'local' for src/gmock (this should keep
the changes im master and ignore changes from hammer)
Do you know what changes have been done in hammer in src/gmock ?
Quoted 23 lines
git commit
You may have to check if the result is what's intended.
Danny
Am 09.03.2015 um 15:18 schrieb Loic Dachary:
Quoted 10 lines
Hi Danny,
As of now, git checkout master ; git merge origin/hammer gets a conflict on gmock
When we last discussed it you found that git merge -m 1 was a solution. But I'm not sure I fully understand the consequences.
Cheers
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
Am 10.03.2015 um 00:06 schrieb Loic Dachary:
Quoted 8 lines · Danny Al-Gaaf
Quoted 5 lines
Hi Loic,
this one is a tricky one. I didn't find a smooth/automatic solution yet.
Quoted 8 lines
Quoted 6 lines
This seems to work:
git checkout master git merge --no-ff origin/hammer git mergetool -> for the conflict: select 'local' for src/gmock (this should keep the changes im master and ignore changes from hammer)
Do you know what changes have been done in hammer in src/gmock ?
It seems as if there was no change to src/gmock in hammer that is not already in master.
Danny
Hi Danny,
Quoted 16 lines · Danny Al-Gaaf
Am 10.03.2015 um 00:06 schrieb Loic Dachary:
Quoted 15 lines · Danny Al-Gaaf
Quoted 11 lines
Hi Loic,
this one is a tricky one. I didn't find a smooth/automatic solution yet.
This seems to work:
git checkout master git merge --no-ff origin/hammer git mergetool -> for the conflict: select 'local' for src/gmock (this should keep the changes im master and ignore changes from hammer)
Quoted 4 lines
Quoted 1 line
Do you know what changes have been done in hammer in src/gmock ?
It seems as if there was no change to src/gmock in hammer that is not already in master.
After the set of commands you suggest, how could we make sure nothing was trashed or unintentionally included ? I can't think of a sure method from the top of my head.
Cheers
Quoted 7 lines
Danny
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
Am 10.03.2015 um 09:02 schrieb Loic Dachary:
Quoted 4 lines
Hi Danny,
Quoted 1 line · Danny Al-Gaaf
Am 10.03.2015 um 00:06 schrieb Loic Dachary:
[...]
Quoted 10 lines
Quoted 6 lines
Quoted 3 lines
Do you know what changes have been done in hammer in src/gmock ?
It seems as if there was no change to src/gmock in hammer that is not already in master.
After the set of commands you suggest, how could we make sure nothing was trashed or unintentionally included ? I can't think of a sure method from the top of my head.
Since these commands only trash/ignore the changes to src/gmock from the hammer branch. And I guess there will be nothing for this directory we need to merge back to master.
In fact the merge conflict is not about commits AFAICS but about the change in master from inline to submodule code.
One possibility would always be to extract the patches from hammer (git checkout hammer && git format-patch master), and check after the merge if one is missing (e.g. run 'git am' until you have a patch that can be applied).
I know this is not ideal ... IMO git is missing an automated way to handle these kind of merge conflict.
Danny