Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107244 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 63671 invoked from network); 20 Sep 2019 01:12:35 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 20 Sep 2019 01:12:35 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id BEB542D2042 for ; Thu, 19 Sep 2019 15:50:19 -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,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: No Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 ; Thu, 19 Sep 2019 15:50:19 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id h144so11715359iof.7 for ; Thu, 19 Sep 2019 15:50:19 -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=BKp+u1iHlR5/eE0dwKYqBl18a5cXH0dImJ4oqHPdaok=; b=IOvEkaTLhamvtWh+zu3C1jdVzGfH4NcnwDX30H1hQtfYeHrNgvKMuyiVHAOWRnyTHR gyuUdfKj8RZVWUCNVkMPTrblUJlzp+Z3aKEgUlWY9nLgXfyZsl+xfxmJTxcbozD/NQfx R/Nn+QfTInZMZIWDwloaqGZU+L5UwNKyWA0597L8pth3fvG0eSASnY3jqxWBxiw6/epR yfV63OMCT2GwFxK9jOsjxuz8eM7KxwU02ZCbQhDqOLTmGL8HThTDfhi6cblfjIDWcwzf AJ40TP4NBNvgFwBQyePMYOCbKWu4dbRal1PPMjUEtO7tqdJjGFGoHiI57ai90Klqld/b 7rHQ== 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=BKp+u1iHlR5/eE0dwKYqBl18a5cXH0dImJ4oqHPdaok=; b=mM02/yj3wqjgHY0P680T/+evyA2pmck3Qf+t88sKG7sLqFZ76SxeaieOQ+UrTVuBEo MZ+OKK6fD856hLk3pUu8ANda6MER5Ov921UxOdD7kp8etQxULs7kcO2oNiBmSjibZ/y5 NPeaRGC8JvYZdSd6y2iloHPSYcw1XWFLWM3yTJp4chtVH0bk359xtge9q+oTacZyHrWZ /mZGRqwI3zzphILritPeLcG8buFTbxtX782B6yas1eRqTMkbAwBA2ajIPPpsI2A7TJCd No2W75sgBCu45PqUmvMwiCRdUFXnf6/j1MQN8oXuKdpvzZP1q6XVpPO/CVIzruOpYS8D 1gdA== X-Gm-Message-State: APjAAAVWnj6ivg03RwRrgzdWqDfzGS1AtTdNLvTRYUv3S5wLQWD/XmjM 3YVUY/j+NlivOxJgrzAqu3XtEM1v0dCFcrkgfMU= X-Google-Smtp-Source: APXvYqzTX7fwPrd3Z4TFrUi2NKDLVJGkEMoEux5HuJs+BPU4noh42rm0FQG/qopbMFf0pXRosekkIb1avc75XPxym1Q= X-Received: by 2002:a5d:8913:: with SMTP id b19mr8200634ion.83.1568933417698; Thu, 19 Sep 2019 15:50:17 -0700 (PDT) MIME-Version: 1.0 References: <44818c1e-07e4-19d5-2ef5-144ccb2b5c05@gmx.de> In-Reply-To: Date: Fri, 20 Sep 2019 01:49:51 +0300 Message-ID: To: "guilhermeblanco@gmail.com" Cc: "Christoph M. Becker" , PHP internals Content-Type: multipart/alternative; boundary="00000000000009ca5f0592efc732" X-Envelope-From: Subject: Re: [PHP-DEV] Re: Question about merged PR #937 From: drealecs@gmail.com (=?UTF-8?Q?Alexandru_P=C4=83tr=C4=83nescu?=) --00000000000009ca5f0592efc732 Content-Type: text/plain; charset="UTF-8" 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 this 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 steps during a PR for multiple reasons that I can highlight if needed. Analyzing git history could be simplified by using --first-parent when one 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 otherwise 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 been 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 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/0adfa03397edcde8cba3bae2032b1f2ef26ea760 > > > > > > 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 as > > < > http://git.php.net/?p=php-src.git;a=commit;h=094d409b3d34c51f49e0121e5ccfe8b2a717aaf6 > >, > > and parts of that PR already with PR #928 as > > < > http://git.php.net/?p=php-src.git;a=commit;h=f48c2327403ce76a870e74f31a069a64dfb711a2 > >. > > > > -- > > 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 > > --00000000000009ca5f0592efc732--