linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: David Miller <davem@davemloft.net>
Cc: bfields@fieldses.org, jeff@garzik.org,
	linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
	linville@tuxdriver.com
Subject: Re: Announce: Linux-next (Or Andrew's dream :-))
Date: Tue, 12 Feb 2008 17:31:10 -0800 (PST)	[thread overview]
Message-ID: <alpine.LFD.1.00.0802121710510.2920@woody.linux-foundation.org> (raw)
In-Reply-To: <20080212.165014.01238510.davem@davemloft.net>



On Tue, 12 Feb 2008, David Miller wrote:
> 
> > Put another way: think of the absolute *chaos* that would happen if I were 
> > to rebase instead of just merging. Every time I pull from you I'd 
> > invalidate your whole tree, and you'd have to re-generate. It gets 
> > unmaintainable very quickly.
> 
> I actually wouldn't mind that, the first thing I do when sending a
> pull request is I stop putting things into my tree and as soon as the
> recipient pulls I wipe out my tree and clone a fresh copy of their's.

You *really* don't see the problem here?

> I really like that mode of operation.

*YOU* like it, because it never generates any issues for *you*. You're the 
top in your heap, and the people above you don't do that insane thing, so 
you get all of the advantages, with none of the downsides. Of *course* you 
like it.

But as people have pointed out, it generates issues for the people under 
you! If I did it, the people who now complain about networking would 
not just be a couple, it would be everybody. Nobody could depend on 
anything out there, because everything would have to rebase.

You just don't see the problems, because the only person above you isn't 
crazy enough to do what you propose. You also don't do ten merges a day of 
subsystems you don't know.

The importance of merging (rather, not screwing up history in general) 
becomes really obvious when things go tits-up. Then they go tits-up 
*without* screwing up the history of the trees that were hopefully tested 
individually.

If you re-base things that others developed, you lose that. Imagine if I 
merged first Greg's tree (by rebasing), and then there was some 
fundamental thing that didn't cause a conflict, but just made something 
not work, when I rebased yours on top. Think about what happens.

Now I've merged (say) 1500 networking-related commits by rebasing, but 
because I rebased on top of Greg's tree that I had also rebased, 
absolutely *none* of that has been tested in any shape of form. I'd not 
use most of the things I pulled, so I'd never see it, I'd just push out 
something that was very different from *both* trees I pulled, with no way 
to really blame the merge - because it doesn't even exist.

So as a result, some *random* commit that was actually fine on its own has 
now become a bug, just because it was re-written. 

You don't see the problem here?

Yes, this is the *crap* you do all the time. You don't see the problems as 
much, because you merge probably only about a tenth of the volume I merge, 
and you can keep track of the subsystem more. But even though you don't 
have nearly the same kinds of problems, people have complained about your 
process.

So there's a real reason why we strive to *not* rewrite history. Rewriting 
history silently turns tested code into totally untested code, with 
absolutely no indication left to say that it now is untested.

You can limit the damage by keeping it to a single subsystem and by 
serializing that subsystem by - for example - talking it over amonst 
yourself what order you do things in, and yes, most of the time rewriting 
doesn't hurt anything at all, but I guarantee you that it's a big mistake 
to do, and the mistake gets bigger the more _independent_ people you have 
involved.

			Linus

  reply	other threads:[~2008-02-13  1:32 UTC|newest]

Thread overview: 215+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-12  1:02 Announce: Linux-next (Or Andrew's dream :-)) Stephen Rothwell
2008-02-12  1:36 ` James Bottomley
2008-02-12  2:23   ` Stephen Rothwell
2008-02-12  3:32     ` James Bottomley
2008-02-12  2:25 ` Stephen Rothwell
2008-02-13 12:53   ` Frank Seidel
2008-02-19  0:45     ` Frank Seidel
2008-02-13 20:24   ` Ann Davis
2008-02-13 20:57     ` Adrian Bunk
2008-02-12  4:21 ` Greg KH
2008-02-12  4:31   ` Arjan van de Ven
2008-02-12  4:43     ` Greg KH
2008-02-12  5:17       ` Arjan van de Ven
2008-02-12  5:53         ` Greg KH
2008-02-12  6:07           ` David Miller
2008-02-12 16:31             ` Jeff Garzik
2008-02-12 17:04               ` John W. Linville
2008-02-12 18:11                 ` Jeff Garzik
2008-02-13  0:12                 ` David Miller
2008-02-12 19:37               ` J. Bruce Fields
2008-02-12 20:07                 ` Linus Torvalds
2008-02-13  0:50                   ` David Miller
2008-02-13  1:31                     ` Linus Torvalds [this message]
2008-02-13  1:38                       ` David Miller
2008-02-13  1:57                         ` Linus Torvalds
2008-02-13  2:06                           ` Andrew Morton
2008-02-13  2:18                             ` Linus Torvalds
2008-02-13  2:20                             ` David Miller
2008-02-13  2:47                               ` Joel Becker
2008-02-13 15:06                                 ` John W. Linville
2008-02-13 16:45                                   ` Joel Becker
2008-02-13  4:25                       ` J. Bruce Fields
2008-02-13  5:43                         ` Linus Torvalds
2008-02-13 17:52                           ` J. Bruce Fields
2008-02-14 17:35                             ` Benny Halevy
2008-02-15 17:15                               ` J. Bruce Fields
2008-02-12 23:51               ` David Miller
2008-02-12 23:54                 ` Al Viro
2008-02-13  0:16                   ` J. Bruce Fields
2008-02-13  0:48                     ` Al Viro
2008-02-13  0:56                       ` J. Bruce Fields
2008-02-13  0:59                       ` Linus Torvalds
2008-02-13  1:25                         ` Al Viro
2008-02-12 15:07           ` James Bottomley
2008-02-12 15:32             ` Benny Halevy
2008-02-12 16:00               ` James Bottomley
2008-02-12  6:11         ` David Miller
2008-02-12  6:21           ` Harvey Harrison
2008-02-12 16:36           ` Jeff Garzik
2008-02-12 16:46             ` Benny Halevy
2008-02-12 17:03             ` James Bottomley
2008-02-12 17:09             ` Linus Torvalds
2008-02-12 17:38               ` Roland Dreier
2008-02-12 17:41               ` James Bottomley
2008-02-12 17:53                 ` Benny Halevy
2008-02-12 18:36                   ` Linus Torvalds
2008-02-12 19:25                     ` Benny Halevy
2008-02-12 18:00                 ` Linus Torvalds
2008-02-12 18:24                   ` James Bottomley
2008-02-12 18:48                     ` Linus Torvalds
2008-02-12 18:59                       ` Linus Torvalds
2008-02-12 19:19                         ` Greg KH
2008-02-13 10:05                           ` Russell King
2008-02-13 12:06                             ` Jeff Garzik
2008-02-13 12:19                               ` Russell King
2008-02-12 19:41                         ` Al Viro
2008-02-12 21:51                           ` Alan Cox
2008-02-12 22:17                             ` Andrew Morton
2008-02-12 22:20                               ` Alan Cox
2008-02-12 22:41                                 ` Al Viro
2008-02-12 23:01                                   ` Alan Cox
2008-02-12 23:27                                     ` Greg KH
2008-02-12 22:55                                 ` Greg KH
2008-02-12 22:59                                   ` Alan Cox
2008-02-12 23:26                                     ` Greg KH
2008-02-13 10:07                             ` Russell King
2008-02-13  0:36                         ` David Miller
2008-02-13  0:53                           ` Linus Torvalds
2008-02-13  1:25                             ` David Miller
2008-02-12 19:17                       ` James Bottomley
2008-02-13  0:33                       ` David Miller
2008-02-12 20:18                     ` Jiri Kosina
2008-02-12 21:00                       ` James Bottomley
2008-02-13  0:27                     ` David Miller
2008-02-17 12:42                     ` David Woodhouse
2008-02-12 17:48               ` Greg KH
2008-02-12 18:26                 ` Linus Torvalds
2008-02-12 19:15                   ` Greg KH
2008-02-12 19:46                     ` Al Viro
2008-02-12 20:50                       ` Greg KH
2008-02-12 21:08                         ` Al Viro
2008-02-12 21:20                           ` Greg KH
2008-02-12 21:36                             ` Linus Torvalds
2008-02-13 10:54                         ` Christoph Hellwig
2008-02-13 17:24                         ` Adrian Bunk
2008-02-12 19:55                     ` Linus Torvalds
2008-02-12 20:48                       ` Greg KH
2008-02-12 21:25                         ` Matthew Wilcox
2008-02-12 23:49                         ` Theodore Tso
2008-02-15 23:23                         ` Russell King
2008-02-15 23:37                           ` Andrew Morton
2008-02-15 23:47                             ` Randy Dunlap
2008-02-16  0:12                               ` Andrew Morton
2008-02-16  0:17                               ` Russell King
2008-02-16  0:25                                 ` Randy Dunlap
2008-02-13 17:12                       ` Roel Kluin
2008-02-13 18:08                         ` Alan Cox
2008-02-15 23:05                           ` Roel Kluin
2008-02-16  0:03                             ` Alan Cox
2008-02-13 18:09                         ` Linus Torvalds
2008-02-15 22:59                           ` Roel Kluin
2008-02-13  0:41                     ` David Miller
2008-02-13  0:47                       ` Andrew Morton
2008-02-13  1:23                         ` David Miller
2008-02-13  7:38                         ` Geert Uytterhoeven
2008-02-13  8:45                       ` distributed module configuration [Was: Announce: Linux-next (Or Andrew's dream :-))] Sam Ravnborg
2008-02-13  8:54                         ` distributed module configuration David Miller
2008-02-13  9:04                           ` Sam Ravnborg
2008-02-13  9:06                             ` David Miller
2008-02-13 10:09                             ` Giacomo A. Catenazzi
2008-02-17 15:51                           ` Pavel Machek
2008-02-14  0:56                         ` distributed module configuration [Was: Announce: Linux-next (Or Andrew's dream :-))] Roman Zippel
2008-02-14  8:48                           ` Geert Uytterhoeven
2008-02-14 22:38                           ` Sam Ravnborg
2008-02-13  0:31                   ` Announce: Linux-next (Or Andrew's dream :-)) David Miller
2008-02-12 18:48                 ` Jeff Garzik
2008-02-12 20:03               ` Russell King
2008-02-12 20:23                 ` Andrew Morton
2008-02-12 20:31                 ` Linus Torvalds
2008-02-13 17:53               ` Adrian Bunk
2008-02-12 23:58             ` David Miller
2008-02-13  0:29               ` Greg KH
2008-02-13  0:49                 ` Linus Torvalds
2008-02-13  1:24                   ` David Miller
2008-02-13  2:16                   ` Theodore Tso
2008-02-13 10:58                     ` Catalin Marinas
2008-02-13  6:16                   ` Greg KH
2008-02-13  7:28                     ` Geert Uytterhoeven
2008-02-16 11:16                       ` Thomas Gleixner
2008-02-13 10:36                     ` Theodore Tso
2008-02-13 17:55                       ` Greg KH
2008-02-13 10:48                     ` Catalin Marinas
2008-02-13  0:37               ` Andrew Morton
2008-02-13  1:16                 ` David Miller
2008-02-13  1:46                   ` Andrew Morton
2008-02-13  0:44               ` Linus Torvalds
2008-02-13  1:20                 ` David Miller
2008-02-13  1:41                   ` Linus Torvalds
2008-02-13  1:46                     ` David Miller
2008-02-13  2:25                   ` James Bottomley
2008-02-13  2:35                     ` Linus Torvalds
2008-02-13  3:00                       ` James Bottomley
2008-02-13  3:31                         ` Linus Torvalds
2008-02-13  3:48                           ` Linus Torvalds
2008-02-13  5:17                             ` Nicolas Pitre
2008-02-13  4:10                           ` James Bottomley
2008-02-13  5:14                           ` Nicolas Pitre
2008-02-13  4:19                         ` Paul Mundt
2008-02-13  4:52                   ` J. Bruce Fields
2008-02-12  4:45     ` Trond Myklebust
2008-02-12  5:11       ` Theodore Tso
2008-02-12  6:02         ` David Miller
2008-02-12  7:06           ` Arjan van de Ven
2008-02-12 22:44             ` Theodore Tso
2008-02-12  6:15         ` Andrew Morton
2008-02-12 11:57           ` Stephen Rothwell
2008-02-12 14:57             ` Greg KH
2008-02-14  8:14             ` Russell King
2008-02-14 12:22               ` Stephen Rothwell
2008-02-14 18:01                 ` Linus Torvalds
2008-02-14 18:32                   ` Gene Heskett
2008-02-14 20:32                     ` Greg KH
2008-02-14 20:39                       ` Gene Heskett
2008-02-15  6:44                       ` Valdis.Kletnieks
2008-02-15  6:29                     ` Valdis.Kletnieks
2008-02-15  9:26                       ` Gene Heskett
2008-02-15 14:52                         ` Valdis.Kletnieks
2008-02-15  1:11                   ` Ingo Molnar
2008-02-20 14:55                   ` Stephen Rothwell
2008-02-20 15:38                     ` Stefan Richter
2008-02-20 15:42                       ` Theodore Tso
2008-02-20 17:13                         ` Adrian Bunk
2008-02-21 13:22                           ` Theodore Tso
2008-02-12  5:07   ` Stephen Rothwell
2008-02-12  5:56     ` Greg KH
2008-02-12  6:10       ` Stephen Rothwell
2008-02-12 16:24   ` multiple drivers, single device (was Re: Announce: Linux-next (Or Andrew's dream :-))) Jeff Garzik
2008-02-12 16:42     ` Greg KH
2008-02-12 17:42       ` multiple drivers, single device Roland Dreier
2008-02-12 17:51         ` Greg KH
2008-02-12 18:08         ` Jeff Garzik
2008-02-12 17:56       ` multiple drivers, single device (was Re: Announce: Linux-next (Or Andrew's dream :-))) Jeff Garzik
2008-02-12 18:10         ` Greg KH
2008-02-12 18:31           ` Jeff Garzik
2008-02-12 18:30         ` Linus Torvalds
2008-02-12 21:38           ` Greg KH
2008-02-12 22:34   ` Announce: Linux-next (Or Andrew's dream :-)) Jan Engelhardt
2008-02-12 18:02 ` Jeff Garzik
2008-02-13  1:20 ` Randy Dunlap
2008-02-13  5:03 ` Kumar Gala
2008-02-14 23:22 ` Roland Dreier
2008-02-15  1:02   ` Stephen Rothwell
2008-02-16 15:14     ` James Bottomley
2008-02-17  5:25       ` Stephen Rothwell
2008-02-17 14:27         ` James Bottomley
2008-02-16  0:09 ` Russell King
2008-02-16  0:21   ` Andrew Morton
2008-02-16  0:31     ` Russell King
2008-02-16  0:45       ` Andrew Morton
2008-02-16  0:42     ` Alexey Dobriyan
2008-02-16  8:08       ` Russell King
2008-02-26  3:54   ` Stephen Rothwell
2008-02-29 12:45     ` Stephen Rothwell
2008-02-29 13:04       ` Adrian Bunk
2008-02-29 23:45         ` Stephen Rothwell

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=alpine.LFD.1.00.0802121710510.2920@woody.linux-foundation.org \
    --to=torvalds@linux-foundation.org \
    --cc=akpm@linux-foundation.org \
    --cc=bfields@fieldses.org \
    --cc=davem@davemloft.net \
    --cc=jeff@garzik.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linville@tuxdriver.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).