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 CAE03181C5 for ; Wed, 23 Sep 2015 22:39:23 +0000 (UTC) Received: (qmail 73806 invoked by uid 500); 23 Sep 2015 22:39:23 -0000 Delivered-To: apmail-asterixdb-dev-archive@asterixdb.apache.org Received: (qmail 73754 invoked by uid 500); 23 Sep 2015 22:39: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 73743 invoked by uid 99); 23 Sep 2015 22:39:23 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2015 22:39:23 +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 05DD41A7CE9 for ; Wed, 23 Sep 2015 22:39:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.002 X-Spam-Level: *** X-Spam-Status: No, score=3.002 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled 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 M2IE-W-k8cH5 for ; Wed, 23 Sep 2015 22:39:11 +0000 (UTC) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 1EAA220F5E for ; Wed, 23 Sep 2015 22:39:11 +0000 (UTC) Received: by lahg1 with SMTP id g1so67994754lah.1 for ; Wed, 23 Sep 2015 15:39:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:sender:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=lxG76N7Nfg9UJskykShY4bgAuAcQxGfjpdAveOJ8p08=; b=KMZbway6G1OwvlEhM4XVJH/Xcc5BAhOwxEwE9J2403Id6t4wvZijI0T4hK5zm1rmhc yvgWdklp65pnqxAwOlRbX4RrMlm5LyNMkDWWITrC/fb3heSpuUHSnBVdv5/LPj2IhZ2e nWvRG0vNtb17fLyWoiPXPVRf2rUGjnEkKbQbJbZLTI3Ks9aYsezVu3xUa6VHOGGAc4Gr YaScYde8aD4HSQhAQLxErYQH/smIdqBjugda5XD5scIqztRKseyR0+aPsTyya0GLdOZW j3boMCCc9xfXTcwEWY82LyDGDn7Ry0ieVP2x/H5+QD8jF0Wy0JHv2ffTDX8u6BUSPbXS mLGQ== X-Gm-Message-State: ALoCoQnRxUVawkij9Bq0yMUn6101TXk0hho68LCh5dHtBgXkXCMNEdp/HSkylJZDpPX2hdIH6eEQ X-Received: by 10.112.184.196 with SMTP id ew4mr12322350lbc.17.1443047950482; Wed, 23 Sep 2015 15:39:10 -0700 (PDT) MIME-Version: 1.0 Reply-To: chillery@hillery.land Sender: ceej@lambda.nu Received: by 10.25.91.197 with HTTP; Wed, 23 Sep 2015 15:38:51 -0700 (PDT) X-Originating-IP: [69.62.207.190] In-Reply-To: References: <920C6B5B-B0E8-4F3A-AC9E-5DC8FEECC18D@gmail.com> From: Chris Hillery Date: Wed, 23 Sep 2015 15:38:51 -0700 X-Google-Sender-Auth: OtfWx3h-AAjqzq1cE_QgHIF2VPs Message-ID: Subject: Re: Merging vs. squashing To: Jianfeng Jia Cc: dev@asterixdb.incubator.apache.org Content-Type: multipart/alternative; boundary=001a11c3ca1e7b99f4052071c8e7 --001a11c3ca1e7b99f4052071c8e7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable P.S. I'd love it if anyone else with opinions or experience would chime in here... I'm pretty sure I don't have all the answers, so I don't want to seem like I'm trying to dictate the discussion. Ceej aka Chris Hillery On Wed, Sep 23, 2015 at 3:38 PM, Chris Hillery wrote: > On Wed, Sep 23, 2015 at 10:40 AM, Jianfeng Jia > wrote: > >> I hit another similar scenario that squash may make things harder. >> >> Now I=E2=80=99m working the UTF8 encoding task. Some part of work has be= en done >> in Taewoo=E2=80=99s branch. But his branch is a bigger change that won= =E2=80=99t get into >> master >> soon. I=E2=80=99d like to cherry-pick several commits from his branch an= d then >> continue >> on my task. Then both of us won=E2=80=99t hit the merging conflict in fu= ture. >> > > That is, I believe, already not true. Cherry-pick and squashed merge have > basically the same effect - they create a new commit with no lineage to t= he > original. If you cherry-pick from his branch, then even if you merged you= rs > to the trunk (rather than squashing), he'd still get conflicts the next > time he updated. > > I will admit I'm not 100% sure I'm correct about this. I've seen some > evidence that git can handle a rebase when the two branches each have a > *single* commit which happens to contain precisely the same diffs, as wou= ld > happen with a cherry-pick that didn't require any conflict resolution of > its own. I'm not confident this always works, and I've never experimented > to see if it works on a merge rather than a rebase. I wouldn't want to ma= ke > any sweeping process decisions until at least we were sure we understood > what works and what doesn't. > > If we did merges all the time instead of squashes and cherry-picks, then > you would be able to share some of Taewoo's work if you could *merge* it = to > your branch. But as you might guess, merging a couple of changes from the > middle of a foreign branch is quite challenging at best. > > Ceej > aka Chris Hillery > --001a11c3ca1e7b99f4052071c8e7--