From: Linus Torvalds <torvalds@linux-foundation.org>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Theodore Tso <tytso@mit.edu>,
Andy Parkins <andyparkins@gmail.com>,
git@vger.kernel.org, Jan Hudec <bulb@ucw.cz>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: mtimes of working files
Date: Fri, 13 Jul 2007 17:10:16 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.0.999.0707131704000.20061@woody.linux-foundation.org> (raw)
In-Reply-To: <1184370414.2785.79.camel@shinybook.infradead.org>
On Sat, 14 Jul 2007, David Woodhouse wrote:
>
> On the occasions I actually try to _use_ branches, I find it very
> suboptimal.
This seems to be very personal.
I tend to use just temporary branches, but I love just going on another
branch, fixing something up, and working on that without having to set up
a whole new tree. It's *much* faster to just switch branches than to do
even a local clone, because I usually would work on something that is
pretty close to the HEAD anyway, so the cost of rewriting a few hundred
files is much less than checking out the 22,000 files all over again.
But I literally tend to just use branches for something small. I don't
personally tend to have any long-term live branches (apart from the remove
ones, obviously). I create a branch, do something in it, merge it, and
go back to master.
The last example of this for me was just re-doing a pull by Ingo, because
he had created some really strange commit in his tree, so I fetched his
stuff, re-created his branch locally without the thing, and then merged
it. And then I just deleted the branch.
> But having to rebuild (even with ccache) after changing branches is a
> PITA.
I don't even use ccache, and I don't care. Probably because most of the
time the rebuild time really isn't that long for me, and for the kernel,
the much more painful part is actually the rebooting part.
But the place where branches *really* rock is when you don't even switch
to them, but use the data from them locally (cherry-picking from them,
or doing something like "git show origin/pu:builtin-blame.c" etc).
And for that to work, you have to get used to having multiple branches in
the tree, even if you don't check them out - and once you do that,
switching between them isn't really that confusing any more, because it's
already part of your "mind map" of how the repo works.
Linus
next prev parent reply other threads:[~2007-07-14 0:11 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-11 15:08 mtimes of working files Yakov Lerner
2007-07-11 18:05 ` Johannes Schindelin
2007-07-11 18:36 ` Yakov Lerner
2007-07-11 18:42 ` Johannes Schindelin
2007-07-11 20:26 ` Jan Hudec
2007-07-12 7:57 ` Andy Parkins
2007-07-12 17:27 ` David Woodhouse
2007-07-13 0:37 ` Theodore Tso
2007-07-13 23:00 ` David Woodhouse
2007-07-13 23:18 ` Linus Torvalds
2007-07-13 23:46 ` David Woodhouse
2007-07-14 0:10 ` Linus Torvalds [this message]
2007-07-14 0:36 ` David Woodhouse
2007-07-14 0:44 ` J. Bruce Fields
2007-07-14 0:49 ` David Woodhouse
2007-07-14 1:29 ` Jakub Narebski
2007-07-14 13:23 ` Robin Rosenberg
2007-07-14 13:09 ` Julian Phillips
2007-07-14 22:22 ` Jan Hudec
2007-07-14 22:36 ` Julian Phillips
2007-07-15 1:46 ` Daniel Barkalow
2007-07-12 6:26 ` Eric Wong
2007-07-12 13:05 ` Randal L. Schwartz
2007-07-12 18:25 ` Eric Wong
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.0.999.0707131704000.20061@woody.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=Johannes.Schindelin@gmx.de \
--cc=andyparkins@gmail.com \
--cc=bulb@ucw.cz \
--cc=dwmw2@infradead.org \
--cc=git@vger.kernel.org \
--cc=tytso@mit.edu \
/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).