[almighty] github merge option for almighty-core

Pranav Gore pgore at redhat.com
Thu Sep 22 11:27:02 UTC 2016


Yes Konrad, Agreed with your changed mind :) Author of PR should consider
if squashing some commits makes sense.


On Thu, Sep 22, 2016 at 4:38 PM, Konrad Kleine <kkleine at redhat.com> wrote:

> Hi Max,
>
> what KB said is correct: A squash "destroys" the history.
>
> I can only guess but the reason why we have squash at the moment is
> probably best explained when you look at master from a different angle.
>
> Suppose you merge a PR with many commits into master and due to some
> reasons it doesn't work: Then you have to revert a whole bunch of commits.
> To be precise: All the commits until the next "merge" commit.
>
> With a squash commit you have just one commit to revert in master.
>
> ... While writing this, I've changed my mind ;) ....
>
> I think a good compromise is to keep an eye on your own commits in your
> PR. If you think that some commits don't add any value, you can refine your
> commit history as long as you want to get it in "a good shape". The
> required force push only works if nobody forked from your branch of course.
>
> As a reviewer we should check that the history is in good shape before we
> approve a PR.
>
> Sound good?
>
> Regards
> Konrad
>
>
>
> On Thu, Sep 22, 2016 at 12:27 PM, Karanbir Singh <kbsingh at redhat.com>
> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Rebase to master, from the PR  would - but then a merge back to master
>> would still squash all the commits into 1 change at point of merge
>> back into master. Thats how the git repo is setup at the moment, and
>> seems wrong to me.
>>
>> If a feature is worked on for a few days, across the team, and then
>> pushed into a single PR to merge into master, we are destroying the
>> entire history of that code.
>>
>> regards,
>>
>> On 21/09/16 19:18, Max Andersen wrote:
>> > Rebase keeps history does it not ?
>> >
>> > Sent from my iPhone
>> >
>> > On 21 Sep 2016, at 18:28, Karanbir Singh <kbsingh at redhat.com
>> > <mailto:kbsingh at redhat.com>> wrote:
>> >
>> > hi,
>> >
>> > I just noticed that the only merge option for almighty-core is now
>> > squash-and-merge, ie. we cant retain commit history for the PR's.
>> > Is this by design ?
>> >
>>
>> - --
>> Karanbir Singh, Project Lead, The CentOS Project, London, UK
>> Red Hat Ext. 8274455 | DID: 0044 207 009 4455
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2.0.22 (GNU/Linux)
>>
>> iQEcBAEBAgAGBQJX47H4AAoJEI3Oi2Mx7xbtF6oIAKxV1r7aPkBDySUQVqj+5khd
>> 3i+psJ5SCXqLJFEC827K+VMEV37pveWtNghRv5MgUKSCGYGX9KPkIiasLkW4RNdK
>> IHtoyp5UvxcvuDGh63doSf0m6vGNitBlvtJ9oG9t3DIS+bFrAugJ9LKl69cRyQuC
>> wlPv0Kq+goEkZK/CuvPhpM7PWkdLgpKQiJXPreVDohWeZfF6aECA87Mf9elQuDta
>> Qt77+Z3Jj3mjLD1lSDXqrAD58n6HbZQwkKm12UUkJpULQA/AO64A1sN1XdYTVxx5
>> Ka15IQdpY4fbQX2rO/qNvcpkQkiIvX7cRSxOLpYmGHxTREPWM8O2kPTcrEmnPsE=
>> =/x5C
>> -----END PGP SIGNATURE-----
>>
>> _______________________________________________
>> almighty-public mailing list
>> almighty-public at redhat.com
>> https://www.redhat.com/mailman/listinfo/almighty-public
>>
>
>
> _______________________________________________
> almighty-public mailing list
> almighty-public at redhat.com
> https://www.redhat.com/mailman/listinfo/almighty-public
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/almighty-public/attachments/20160922/dfbbe29d/attachment.htm>


More information about the almighty-public mailing list