Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107252 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 71551 invoked from network); 20 Sep 2019 09:58:42 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 20 Sep 2019 09:58:42 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 8BCE22D2025 for ; Fri, 20 Sep 2019 00:36:32 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: X-Spam-Virus: No Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Fri, 20 Sep 2019 00:36:31 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id q11so4281556lfc.11 for ; Fri, 20 Sep 2019 00:36:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sGQ1wYI2TgEKlfykMYqIn1wrE8qjDr7DJoLByXJGMbs=; b=OkSGXVDAxK015iZbpvfinLiMS2XDMxXDP9dP+Ut3KkpFzHSszLtz6Ysfqr43Qtf8kM 4mUkE+5Wqnf1B5Z1TStlDjIASvacOZhYM/UuFLIEMl4p3oEUdO5y5RlKe5wgEcH4XnwT fhNPUXJJM930XECYc+xGwZ7PaN1hurFhyLA3NvtWt+qMqpPQpTZD6kF0QqHM1TL+qmPl VkXroIRnXxEqE1E7IrvrW8NyZaxw1norzCOXo/Jpn3mRNUN2ahP25HkyicLDBWcH1EuL V8NO5rGV0iid7z8rcElpRvEphXQlyNnhH4eSf2nCMJm1jahbpiS71xEpqLozQkFEjaBi MRUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sGQ1wYI2TgEKlfykMYqIn1wrE8qjDr7DJoLByXJGMbs=; b=lONOHybMwEpcrJiv2EQ8+IB42KOSWy9kj53To+CtazwDxfj3rnkNYcGVhy9T/DZ93p bCzTtCPlaDs+KpqAnmSgOT5PNVS0mcBDNj4vYfN5GH9XyXG+BiS+OsHPK6Z4+PZtMqyD jIJp9CJ/PRrRE8ODTlBk78FZPHqrAe3HXHJ7759e8GD6xt5K1uNoQPnjx3dtCeMSkH7v XFA6kjWrZSuOU7xxk4ZS1bfOFRN5rgyaQ0S5LSDRa6OLgqV46rgL47mVcyN+tWcwXF7J J/IuiL6CrVYFgWE8i0mx/L7gdri5HBkRlSO9kjG3NUV68vi2JyU2keY4TqpCehaO9gdc tWag== X-Gm-Message-State: APjAAAXFOJSHjcHxq8HOQYucw1fiWHywWKtPn1C8cYikedtJgXp92AiP Mkc0HTe+K8JkMwbYRFdiZhqDrHBWB7WMuc56kjk= X-Google-Smtp-Source: APXvYqxMcGrVU7LiuBfi5kfe0K8S5idwpNr8f2lKAsxjh8Xz9U9mt5mSAPIUwz2U4CzNJhY436mw+w6vrMuSGwrOCOE= X-Received: by 2002:ac2:4149:: with SMTP id c9mr8021704lfi.128.1568964990426; Fri, 20 Sep 2019 00:36:30 -0700 (PDT) MIME-Version: 1.0 References: <44818c1e-07e4-19d5-2ef5-144ccb2b5c05@gmx.de> In-Reply-To: Date: Fri, 20 Sep 2019 09:36:14 +0200 Message-ID: To: =?UTF-8?Q?Alexandru_P=C4=83tr=C4=83nescu?= Cc: "guilhermeblanco@gmail.com" , "Christoph M. Becker" , PHP internals Content-Type: multipart/alternative; boundary="000000000000eb64d60592f72047" X-Envelope-From: Subject: Re: [PHP-DEV] Re: Question about merged PR #937 From: nikita.ppv@gmail.com (Nikita Popov) --000000000000eb64d60592f72047 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 20, 2019 at 12:50 AM Alexandru P=C4=83tr=C4=83nescu wrote: > Hi Guilherme, > > That is what is happening when squashing commits during merge. > > I noticed this also few months ago but didn't mentioned it as I though th= is > is one of the usual flows. > I quickly searched it now and found it here: > https://wiki.php.net/vcs/gitworkflow: "Additionally, the history of pull > requests often requires cleanup. For most pull requests, all commits can = be > squashed into one." > > It could be considered a good practice to not pollute git history with a > lot of small commits as it would hinder analyzing it later. > On the other hand I quite like (and promote) doing small incremental step= s > during a PR for multiple reasons that I can highlight if needed. > > Analyzing git history could be simplified by using --first-parent when on= e > would not want to go in details on second parent of a merge commit with > individual detailed commits. > Also, there is no noticeable git performance improvements when using > squash. > > One of the advantages here would be that author would see his name in > contributors of a file or on repository level and be proud of it. > This is an important factor especially in open source software as otherwi= se > it could leave a bitter taste that you are not fully recognized as > contributor in git's history and might decrease the chance to future > contributions. > > Would it be up for discussion to define the way to merge pull requests in > order to avoid squashing merges by a different author? Has this issue bee= n > discussed before? > The mention that "the history of pull requests often requires cleanup" is > not clearly defined. I would not agree that PR-937 > https://github.com/php/php-src/pull/937/commits or PR-911 > https://github.com/php/php-src/pull/911/commits required squashing. > As a simple solution, if squashing is required it should be done by the > original author, before merging. > > Regards, > Alex > Git has separate notions of "author" and "committer". The author is preserved during squashing, and the author is what is relevant for contribution statistics on GitHub. If the author is preserved but the user doesn't show up as a contributor, that's likely due to a missing mail mapping between the email address and the GitHub account. Nikita > On Thu, Sep 19, 2019 at 8:20 PM guilhermeblanco@gmail.com < > guilhermeblanco@gmail.com> wrote: > > > Thanks for the clarification Christoph! > > Somehow I couldn't see it when looking for the commit hash. Sorry for > > the disturbance in the list here. > > > > PS: I find it funny that even though I'm the original author of the > > code, I don't show as a contributor in any statistics. > > It'd be a shame to not be considered as a valid voter for "lack of > > recent contribution" to the language. > > > > Cheers, > > > > > > On Thu, Sep 19, 2019 at 12:58 PM Christoph M. Becker > > wrote: > > > > > > On 19.09.2019 at 17:01, guilhermeblanco@gmail.com wrote: > > > > One of my old PRs to PHP that was claimed to be merged disappeared > > > > from master. However, the upgrade note is still there in master and > > > > 7.4beta1. > > > > > > > > Here is the PR: https://github.com/php/php-src/pull/937 > > > > Here is the commit referencing it: > > > > > > > https://github.com/php/php-src/commit/0adfa03397edcde8cba3bae2032b1f2ef26= ea760 > > > > > > > > Please let me know if there's anything I can do to help. > > > > > > From what I can tell, everything is there. PR #911 has been merged a= s > > > < > > > http://git.php.net/?p=3Dphp-src.git;a=3Dcommit;h=3D094d409b3d34c51f49e012= 1e5ccfe8b2a717aaf6 > > >, > > > and parts of that PR already with PR #928 as > > > < > > > http://git.php.net/?p=3Dphp-src.git;a=3Dcommit;h=3Df48c2327403ce76a870e74= f31a069a64dfb711a2 > > >. > > > > > > -- > > > Christoph M. Becker > > > > > > > > -- > > Guilherme Blanco > > SVP Technology at Statflo Inc. > > Mobile: +1 647 232 5599 > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > --000000000000eb64d60592f72047--