all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: larsi@gnus.org, rpluim@gmail.com,
	Emacs Development <Emacs-devel@gnu.org>
Subject: Re: Rebasing vs. merging
Date: Wed, 19 Aug 2020 09:09:26 -0700	[thread overview]
Message-ID: <e993f753-4aea-d50c-54fd-6b4fb81ab197@cs.ucla.edu> (raw)
In-Reply-To: <838seaelk9.fsf@gnu.org>

On 8/19/20 7:51 AM, Eli Zaretskii wrote:
> If you have time and motivation, please read the thread starting at
> 
>    https://lists.gnu.org/archive/html/emacs-devel/2014-12/msg01444.html

I wasn't involved in that thread (though perhaps I should have been, as one of 
its topics was a botched rebase+merge that lost of one of my commits :-), so I 
just now read it. A few remarks:

* The botched rebase+merge there was due to our old practice of putting 
ChangeLog patches into each commit. We've stopped doing that (thank goodness), 
so that particular botch wouldn't happen under our current development practice. 
Of course similar problems could still occur in other files, though they're less 
likely.

* The thread's key bit of advice was David Engster's "Never rebase commits that 
are upstream." 
<https://lists.gnu.org/archive/html/emacs-devel/2014-12/msg01468.html> This is 
indeed good advice. The git-rebase man page has more details on this for those 
interested.

* Rebasing local commits works just fine with a merge-based workflow, and I do 
it all the time in Emacs development. It's OK even if you have local branches 
and merges, so long as you consistently follow David's advice.

* That being said, I don't use local merges, as a primary role of merges is to 
support collaboration and I collaborate very poorly with myself (because I 
always get into arguments :-).



  reply	other threads:[~2020-08-19 16:09 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200816182558.16607.52991@vcs0.savannah.gnu.org>
     [not found] ` <20200816182601.16F2A209AC@vcs0.savannah.gnu.org>
2020-08-16 18:34   ` master bdda935 2/2: Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs Lars Ingebrigtsen
2020-08-16 19:03     ` Eli Zaretskii
2020-08-16 19:13       ` Lars Ingebrigtsen
2020-08-17 14:15     ` Robert Pluim
2020-08-17 14:57       ` Stefan Monnier
2020-08-17 15:37         ` Robert Pluim
2020-08-17 16:58           ` Eli Zaretskii
2020-08-17 16:03         ` Andreas Schwab
2020-08-17 19:54           ` Stefan Monnier
2020-08-17 20:05             ` Andreas Schwab
2020-08-17 20:31               ` Stefan Monnier
2020-08-18  9:41                 ` Yuri Khan
2020-08-18 16:48                   ` Stefan Monnier
2020-08-18 18:47                     ` Yuri Khan
2020-08-19  5:16                     ` Madhu
2020-08-19 13:15                       ` Stefan Monnier
2020-08-17 15:58       ` Eli Zaretskii
2020-08-17 16:11         ` Paul Eggert
2020-08-17 16:26           ` Lars Ingebrigtsen
2020-08-17 16:29             ` Paul Eggert
2020-08-17 17:01               ` Lars Ingebrigtsen
2020-08-17 17:08             ` Eli Zaretskii
2020-08-17 18:03               ` Lars Ingebrigtsen
2020-08-17 18:16                 ` Eli Zaretskii
2020-08-17 18:43                   ` Lars Ingebrigtsen
2020-08-17 19:28                     ` Eli Zaretskii
2020-08-17 20:05                     ` David De La Harpe Golden
2020-08-18 19:02                       ` Basil L. Contovounesios
2020-08-19  3:56                         ` Amin Bandali
2020-08-19 13:04                         ` Stephen Leake
2020-08-19  9:13                     ` Rebasing vs. merging Teemu Likonen
2020-08-19  9:49                       ` Kévin Le Gouguec
2020-08-19 14:51                       ` Eli Zaretskii
2020-08-19 16:09                         ` Paul Eggert [this message]
2020-08-19 16:22                         ` John Wiegley
2020-08-17 18:45                   ` Rebasing vs merging (was: master bdda935 2/2: Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs) Óscar Fuentes
2020-08-17 17:02           ` master bdda935 2/2: Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs Eli Zaretskii

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=e993f753-4aea-d50c-54fd-6b4fb81ab197@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=Emacs-devel@gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    --cc=rpluim@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.