Return-Path: X-Original-To: apmail-infrastructure-dev-archive@minotaur.apache.org Delivered-To: apmail-infrastructure-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D377CE8C for ; Wed, 6 Jun 2012 02:15:12 +0000 (UTC) Received: (qmail 10536 invoked by uid 500); 6 Jun 2012 02:15:11 -0000 Delivered-To: apmail-infrastructure-dev-archive@apache.org Received: (qmail 10448 invoked by uid 500); 6 Jun 2012 02:15:11 -0000 Mailing-List: contact infrastructure-dev-help@apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: infrastructure-dev@apache.org Delivered-To: mailing list infrastructure-dev@apache.org Received: (qmail 10435 invoked by uid 99); 6 Jun 2012 02:15:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 02:15:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.160.50] (HELO mail-pb0-f50.google.com) (209.85.160.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 02:15:05 +0000 Received: by pbbrr4 with SMTP id rr4so8926000pbb.23 for ; Tue, 05 Jun 2012 19:14:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=aXmzvnC5/JQuAQ1KPZY0Dme1EnNUb8WNxppw/jEwe4Q=; b=fh/u97oSeVh11FlO4/od0N/nZux4V1R1kJ/l7yHMVXvMddYHFi5tHz9y5WgctGW7tk j8Qb9VzwComyfA00U+x6UOYQVSra0VBBf0dnzOB5hxrap5OAUuvuW3ps05CkOREYI97L THMUV9Qu26kNyO09KbDercFVvVsrsWR0gmM+1IFUj6uYk+1iD4YKi3CCjo0n5gZlnrvb 72Fj2O/JOG/MCe1hqJvymatdgVmZ24TFhX2cgY1cUfyqcd5HSU8WelX2L8YX34gsaxNc SzZFvEFkZSFbPXun3518RANrGuwo/pJWmQwamDx/TAg+mjt/qSHYqwPB8PX4Gn+f07DM ZDVA== Received: by 10.68.219.41 with SMTP id pl9mr49843408pbc.61.1338948885184; Tue, 05 Jun 2012 19:14:45 -0700 (PDT) Received: from [10.0.0.10] (ppp121-44-41-179.lns20.syd6.internode.on.net. [121.44.41.179]) by mx.google.com with ESMTPS id we10sm758126pbc.13.2012.06.05.19.14.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Jun 2012 19:14:44 -0700 (PDT) Sender: Brett Porter Subject: Re: [1/2] git commit: f92a685 - Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: Brett Porter In-Reply-To: <31A3B1BB-1C82-41E6-B66D-0B01F58FD846@apache.org> Date: Wed, 6 Jun 2012 12:14:40 +1000 Cc: Greg Stein Content-Transfer-Encoding: quoted-printable Message-Id: References: <20120605175350.20B8DFFC3@tyr.zones.apache.org> <1338922313.17426.YahooMailNeo@web160904.mail.bf1.yahoo.com> <31A3B1BB-1C82-41E6-B66D-0B01F58FD846@apache.org> To: infrastructure-dev@apache.org X-Mailer: Apple Mail (2.1278) X-Gm-Message-State: ALoCoQlVOMN4s6NkjVGPi8IPXFcyFtw1TiS0JZkr32TGcStoMYM5xx9DkWieJSujlv3xJmcHFnfq X-Virus-Checked: Checked by ClamAV on apache.org I went ahead and added this here: = https://git-wip-us.apache.org/docs/committer-practices.html I'm not sure if everyone agrees with this practice, so I'm happy to = revise/remove it - but thought it might be a good place to start with = documenting typical practices used by committers here. - Brett On 06/06/2012, at 10:08 AM, Brett Porter wrote: >=20 > On 06/06/2012, at 4:51 AM, Joe Schaefer wrote: >=20 >> Merge commits do peculiar things- part of what happened >> is that I committed my change locally first, then pulled >> to sync up with the central repo, then pushed back. Somehow >> history gets reordered and that is supposed to be reflected >> in these merge commit notices. >=20 > Nothing peculiar here, though it can be a bit hard to grok from the = mails at first look. I actually prefer these notifications to github's = approach of showing you the diffs of the merge commits all over again, = though.=20 >=20 > The common ancestor of the changes was 33cc902, the rev Joe had as = HEAD when he made his changes. What is shown here are the files changed = by 4 commits on origin that were merged in to Joe's copy when he pulled = the changes. History wasn't reordered, it just runs in parallel to each = other :) >=20 > Joe, you probably want this if you use git pull: >=20 > git config branch.master.rebase true >=20 > That makes it the equivalent of "git fetch origin; git rebase = origin/master" instead of fetch and merge, so your changes will be = rewritten against the latest commit and the merge commit omitted. >=20 > To ensure that is set up on any new repositories cloned: >=20 > git config --global branch.autosetuprebase always >=20 > Cheers, > Brett >=20 > -- > Brett Porter > brett@apache.org > http://brettporter.wordpress.com/ > http://au.linkedin.com/in/brettporter > http://twitter.com/brettporter >=20 >=20 >=20 >=20 >=20 -- Brett Porter brett@apache.org http://brettporter.wordpress.com/ http://au.linkedin.com/in/brettporter http://twitter.com/brettporter