RFC on git work-flow guideline (was: [Tomahawk Integration] GSoC Report)
Edward Toroshchin
edward.hades at gmail.com
Tue Jul 10 13:27:33 UTC 2012
On Tue, Jul 10, 2012 at 03:01:06PM +0200, Matěj Laitl wrote:
> Lucas' repo looks like it has no his own commits in master. Therefore I wanted
> to say: Shouldn't all his `git pull git://anongit.kde.org/amarok master`
> commands performed in his master branch have resulted in fast-forwards? (that
> don't create the merge commit so I therefore don't call them "merges")
>
> E.g. `git push` without --rebase in master may still be correct if you don't
> have own commits so that it results in fast-forward, that's what I wanted to
> say.
I see. There is actually commit bedfbae3ed20b0676482f601cef0607f2325586a
there.
I presume Lucas expected his branch "master" to be, as you put it, a
carbon-copy, but forgot this one commit. It made all his pull
operations merges.
I recommend using the options "--ff-only" and/or "--rebase" more often
to avoid Git doing unwanted things.
> Not in normal operation, but if you have merge conflicts and don't resolve them
> carefully, then yes. The point is that the second merge is somewhat prone to
> be resolved wrong in case of reverted commits, see
> https://github.com/strohel/failed-merge-plus-revert-showcase/network
This problem can of course be avoided by getting rid of frequent merges.
It is however not a direct consequence of these merges, but rather a
consequence of sloppy merge conflict resolution. If you used a proper
mergetool or at least had set merge.conflictstyle = diff3, you would
know that this "b" line had been deleted in master, and you should not
leave it in your merged code.
And, of course, you should not do merges if you don't understand the
code :)
--
Edward "Hades" Toroshchin
dr_lepper on irc.freenode.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/amarok-devel/attachments/20120710/d7559ec7/attachment.sig>
More information about the Amarok-devel
mailing list