Return-Path: X-Original-To: apmail-asterixdb-dev-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-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 500C817458 for ; Thu, 24 Sep 2015 07:42:23 +0000 (UTC) Received: (qmail 43492 invoked by uid 500); 24 Sep 2015 07:42:23 -0000 Delivered-To: apmail-asterixdb-dev-archive@asterixdb.apache.org Received: (qmail 43462 invoked by uid 500); 24 Sep 2015 07:42:23 -0000 Mailing-List: contact dev-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list dev@asterixdb.incubator.apache.org Received: (qmail 43450 invoked by uid 99); 24 Sep 2015 07:42:22 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2015 07:42:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7787E1A7D7A for ; Thu, 24 Sep 2015 07:42:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.899 X-Spam-Level: *** X-Spam-Status: No, score=3.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id xt-zyIOM1ub3 for ; Thu, 24 Sep 2015 07:42:17 +0000 (UTC) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 4472927D47 for ; Thu, 24 Sep 2015 07:42:17 +0000 (UTC) Received: by pacfv12 with SMTP id fv12so66693128pac.2 for ; Thu, 24 Sep 2015 00:42:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=NM0wF38QwzmcDgn8s18LuzgBkMM1vkrRTBDGRTA4mtY=; b=cCb5WI0Qkju3f2nhF283HELNJL8+O8PtzGiV7N4huHS1MP4CXUOrwSTTGXQzfAEEp2 SkN5JXHlW0r9GJBe2aEOealm+J2e+FIn4yIKsApoDw7vMl3WfHQ38UR0cS8hia9D0fMe aPYV7k0j6Jlrbmf9iPfM+vi8Zy++ln2Bi9KFvlDUbe5iGL08SNz4VUkqPTViEvqN2hed BzbduFvsEMZQlkdyOyzeKa1ut4lHnhvzOOjAo4BCl0DXCOC2+Iyx0D5EmyPCWfojaJ9k er69Qku+8jV9Dajk7GYZSwOI5ecngrZ43vLHxYEMnkNqKuAH7qB2NAnyzIrw23P3kZHV 028w== X-Received: by 10.68.179.133 with SMTP id dg5mr43220912pbc.0.1443080535979; Thu, 24 Sep 2015 00:42:15 -0700 (PDT) Received: from dhcp-v240-203.pv.reshsg.uci.edu (dhcp-v240-203.pv.reshsg.uci.edu. [169.234.240.203]) by smtp.gmail.com with ESMTPSA id gw3sm11930540pbc.46.2015.09.24.00.42.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Sep 2015 00:42:15 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_C74CA35E-D5B1-4ECC-A6A7-7C44834065E7" Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: Merging vs. squashing From: Jianfeng Jia In-Reply-To: Date: Thu, 24 Sep 2015 00:42:13 -0700 Cc: Ted Dunning , dev@asterixdb.incubator.apache.org Message-Id: <4CC52EAA-ED4D-4A83-BB89-EED4B0DC0E58@gmail.com> References: <920C6B5B-B0E8-4F3A-AC9E-5DC8FEECC18D@gmail.com> To: chillery@hillery.land X-Mailer: Apple Mail (2.2104) --Apple-Mail=_C74CA35E-D5B1-4ECC-A6A7-7C44834065E7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 To ensure 2, IMO it=E2=80=99s better to enforce that every commit start = with a jira ticket number. Then at least we can run an eyeball groupby = on the commit history. > On Sep 23, 2015, at 11:54 PM, Chris Hillery = wrote: >=20 > On Wed, Sep 23, 2015 at 6:29 PM, Ted Dunning > wrote: >=20 > Cherry picking (in my experience) works very much as desired. The fact = that a commit exists on two branches doesn't seem to cause any trouble = at all at merge time. >=20 > That's good to hear. I have definitely had bad experiences when = dealing with cherry-picked commits, but I have not been able to pin down = a specific case where they don't do what you might hope. I'm not sure = how the git magic works, but it would certainly be compelling if it did = work. > =20 > Rebasing interactively is another case. I routinely use this to make = my local history more sensible. Within reason, it allows me to squash = and re-order my own commits so that there appears to be more order in = the historical record than was in my head at the time I did the work. >=20 > Yes, this is a good strategy that we would definitely want to = encourage if we were to stop doing the full-squash at commit time. The = golden rules IMHO are: >=20 > 1. Don't rewrite history (which includes squashing or amending commits = and force pushes) on a branch that has been shared to anyone else. >=20 > 2. Ensure that the commits which are ultimately pushed to master are = sensible, self-contained, well-documented, etc. >=20 > There's a small amount of tension between those two rules, but it can = be handled. >=20 > Ceej > aka Chris Hillery Best, Jianfeng Jia PhD Candidate of Computer Science University of California, Irvine --Apple-Mail=_C74CA35E-D5B1-4ECC-A6A7-7C44834065E7--