Received: from eggs.gnu.org ([2001:4830:134:3::10]:52027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCCq1-00089T-NF for qemu-devel@nongnu.org; Wed, 30 Nov 2016 16:54:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCCpy-0005yv-KJ for qemu-devel@nongnu.org; Wed, 30 Nov 2016 16:54:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36740) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cCCpy-0005yp-Dw for qemu-devel@nongnu.org; Wed, 30 Nov 2016 16:54:46 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 33D4A4E327 for ; Wed, 30 Nov 2016 21:54:45 +0000 (UTC) References: <9151aa4b-44ed-ee0f-4dac-581931b3e899@redhat.com> <1480503358.20354.23.camel@redhat.com> <0a6692f7-d2d3-2902-d5f0-77035c90a6cb@redhat.com> <3c7b4731-f9a5-6594-eaba-ce73b622b564@redhat.com> From: Laszlo Ersek Message-ID: <66add26a-afbe-0727-0cb9-c60c617067db@redhat.com> Date: Wed, 30 Nov 2016 22:54:43 +0100 MIME-Version: 1.0 In-Reply-To: <3c7b4731-f9a5-6594-eaba-ce73b622b564@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] a suggestion to place *.c hunks last in patches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , Gerd Hoffmann Cc: qemu devel list On 11/30/16 21:48, John Snow wrote: > > > On 11/30/2016 07:03 AM, Laszlo Ersek wrote: >> On 11/30/16 11:55, Gerd Hoffmann wrote: >>> On Mi, 2016-11-30 at 11:08 +0100, Laszlo Ersek wrote: >>>> Recent git releases support the diff.orderFile permanent setting. >>> >>> Cool. >>> >>>> configure >>>> *Makefile* >>>> *.json >>>> *.txt >>>> *.h >>>> *.c >>> >>> I'd put *.txt to the head so doc updates come first. >> >> Good idea, yes. >> >>> Otherwise the order looks good to me. >>> >>> Want sent a patch? >> >> What file for? :) >> >> I've considered modifying >> , but that article is >> humongous already. >> > > > > I am itching to split this article up. > > It was a giant monolith when I found it, so I split it up into "phases" > and added a TOC, but it's still too unapproachable. So is it large, in your opinion? No, it's not large. (I know I wrote "humongous", but that was sort of tongue in cheeck.) This is large: https://github.com/tianocore/tianocore.github.io/wiki/Laszlo's-unkempt-git-guide-for-edk2-contributors-and-maintainers :) (Note that it describes the -O option too -- at the time of writing, diff.orderFile didn't exist yet. I guess I should tack another update to my todo list, but I can't see its end from here.) > I'm thinking _two_ articles: > > (1) A quick and dirty checklist that people can reference for their > first submissions to make sure they are in the correct universe when > submitting a patch, written expressly to be easy to digest without being > overwhelming, and > > (2) A more detailed article we can reference when offering specific > feedback to newer contributors who did mostly everything correct. > > That's very kind to new contributors! > >> Nonetheless, section "Make code motion patches easy to review" mentions >> some diff.* settings, so I guess a new section after it ("Format >> declarative and abstract changes near the top") would be appropriate, if >> there's no disagreement. >> >>> Can this be automatically enabled per repo, like .gitignore, so it works >>> without everybody tweaking its local git config? >> >> Not to my understanding. >> >> Thanks! >> Laszlo >> >> > > Great suggestion. implementing immediately. :) "Implementing" as in you're going to submit the order file patch, and update the wiki? ;) (Just kidding, I can do those things. Later.) Thanks! Laszlo