Gentoo Archives: gentoo-dev

From: NP-Hardass <NP-Hardass@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Git workflow
Date: Sat, 04 Jul 2015 18:33:21
Message-Id: 3DDF62CA-F177-4407-9957-B18EA916B7D3@gentoo.org
In Reply to: [gentoo-dev] Git workflow by "C Bergström"
1 On July 4, 2015 2:17:41 PM EDT, "C Bergström" <cbergstrom@×××××××××.com> wrote:
2 >I realize that this is subject to lots of different opinions and that
3 >my input doesn't carry much weight - At least I thought it's a topic
4 >that should be brought up (again?)
5 >---------
6 >To start.... I hate git.. I have used it for years now and the
7 >multitude of ways that are possible to accomplish nearly the same
8 >thing are *annoying* at best.. With that rant out of the way on to the
9 >point..
10 >---------
11 >I super don't like "merge" workflows.
12
13 Just a short note, the last time I read the git workflow on the wiki [0], rebase of one's commit is suggested with fallback to merge if unable to rebase.
14
15 >1) "merge commits" are confusing at best and normal tools don't
16 >display and work with them as you'd always expect
17
18 It's a GUI, but dev-util/meld provides a pretty nice interface for git merges.
19
20 >
21 >2) merge commits lead to multiple parents, which breaks a clean and
22 >simple to follow linear history
23 >---------
24 >
25 >What I personally prefer is a rebase workflow.
26 >The downsides
27 >1) Requires to you rebase before pushing. Which can be slightly more
28 >work than just a lazy resolution of the conflicting "merge commit"
29 >(depending on if you flatten your commits)
30 >
31 >2) May not be the most popular git work-flow.
32 >
33 >3) Due to #2 from above - may have detractors and or less people who
34 >are familiar with it.
35 >--------------
36 >I'm of the mindset that if you're going to keep something under
37 >revision - the history should be clear and clean. Linear is the only
38 >way to fly for that. For those using cvs or svn - that's what they'll
39 >be familiar with and probably expect to find in a git log. You can
40 >start with forcing rebase and keep a clean history - if one day it
41 >proves too problematic you can switch over to "merging" - the other
42 >way isn't really possible to do cleanly, depending on your tools..
43 >
44 >Thanks for the minute
45
46 --
47 NP-Hardass
48
49 [0] https://wiki.gentoo.org/wiki/Gentoo_git_workflow

Replies

Subject Author
Re: [gentoo-dev] Git workflow William Hubbs <williamh@g.o>