From: Kyle Moffett <mrmacman_g4@mac.com>
To: Pierre Ossman <drzeus-list@drzeus.cx>
Cc: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: Git training wheels for the pimple faced maintainer
Date: Fri, 20 Oct 2006 03:30:23 -0400 [thread overview]
Message-ID: <5D90D82F-662F-4DF4-891A-90A4FA69A84E@mac.com> (raw)
In-Reply-To: <45386E0E.7030404@drzeus.cx>
On Oct 20, 2006, at 02:34:54, Pierre Ossman wrote:
> Linus Torvalds wrote:
>> That all sounds fine. Please just check the format for the "[GIT
>> PULL]" message: Andrew pulls peoples trees on his own and largely
>> automatically, so he doesn't much care _what_ is in the tree, but
>> I care deeply. So I want the diffstat and shortlog listings, and
>> preferably a few sentences at the top of the email describing
>> what's going on and why things are happening.
>
> I'm still learning the more fancy parts of git, but I think that
> would be:
>
> git diff master..for-linus | diffstat
> git log master..for-list | git shortlog
Not quite. diffstat doesn't understand renames and such, you want to
use something more like this:
git diff -M --stat --summary master..for-linus
git log --pretty=short master..for-linus | git shortlog
As an example, if you rename foo/bar/baz.c to foo/bar/quux.c and
change a few lines, you'll get something like this:
foo/bar/{baz.c => quux.c} | 8 +--
It similarly makes renames between directories look nice.
>> So there's simply no point in merging from me, unless you know
>> that there are clashes due to other development, and you actually
>> want to fix them up. You will just cause unnecessary criss-cross
>> merges if you pull from my tree after you've started development,
>> and the history gets really really messy.
>
> And in order to test for conflicts, I assume I should have a "test
> tree" that I merge all my local stuff in, together with your
> current HEAD?
Yes
>> If you actually want your development tree to "track" my tree, I'd
>> suggest you have your "for-linus" branch that you put the work you
>> want to track into, and then a plain "linus" branch which tracks
>> _my_ tree. Then you can just fetch my tree (to keep your "linus"
>> branch up-to-date), and if you want your development branch to
>> track those changes, you can just do a "git rebase linus" in your
>> "for-linus" branch.
>
> If I've understood git correctly, a rebase is a big no-no once I've
> published those changes as it reverts some history. Right?
Well, sorta. If it's a pseudo-published development and you actually
_don't_ _care_ what the old history was (because it was broken or
incorrect or one of the patches got corrupted during import) then go
ahead and wipe it out. On the other hand if you have random people
pulling from your published tree then you can't safely git-rebase or
cg-admin-rewrite-hist or similar. Luckily GIT will just complain
about a discontinuous history as opposed to losing data.
Cheers,
Kyle Moffett
next prev parent reply other threads:[~2006-10-20 7:30 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-19 21:17 Pierre Ossman
2006-10-19 22:25 ` Andrew Morton
2006-10-20 6:26 ` Pierre Ossman
2006-10-20 6:35 ` Kyle Moffett
2006-10-20 6:37 ` Andrew Morton
2006-10-25 21:50 ` Pierre Ossman
2006-10-25 22:06 ` Andrew Morton
2006-10-19 23:44 ` Linus Torvalds
2006-10-20 1:07 ` Mark Fasheh
2006-10-20 6:45 ` Pierre Ossman
2006-10-20 21:08 ` Mark Fasheh
2006-10-20 4:28 ` Kyle Moffett
2006-10-20 6:34 ` Pierre Ossman
2006-10-20 7:30 ` Kyle Moffett [this message]
2006-10-20 15:26 ` Linus Torvalds
2006-10-20 15:35 ` Linus Torvalds
2006-10-21 9:44 ` Pierre Ossman
2006-10-21 16:10 ` Linus Torvalds
2006-10-21 18:05 ` Pierre Ossman
2006-10-21 19:07 ` Linus Torvalds
2006-10-21 16:47 ` Roland Dreier
2006-10-21 18:15 ` Pierre Ossman
2006-10-21 21:27 ` Roland Dreier
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=5D90D82F-662F-4DF4-891A-90A4FA69A84E@mac.com \
--to=mrmacman_g4@mac.com \
--cc=akpm@osdl.org \
--cc=drzeus-list@drzeus.cx \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/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
all inboxes | Powered by JetHome®