From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC6va-0004Fo-Hw for qemu-devel@nongnu.org; Wed, 30 Nov 2016 10:36:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cC6vW-0002cj-No for qemu-devel@nongnu.org; Wed, 30 Nov 2016 10:36:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35620) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cC6vW-0002cV-HB for qemu-devel@nongnu.org; Wed, 30 Nov 2016 10:36:06 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (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 91AD580516 for ; Wed, 30 Nov 2016 15:36:05 +0000 (UTC) References: <9151aa4b-44ed-ee0f-4dac-581931b3e899@redhat.com> <1480503358.20354.23.camel@redhat.com> <0a6692f7-d2d3-2902-d5f0-77035c90a6cb@redhat.com> <1480508956.20354.28.camel@redhat.com> From: Laszlo Ersek Message-ID: <53497aa8-b0a0-00c4-103a-5169ed74aa35@redhat.com> Date: Wed, 30 Nov 2016 16:36:03 +0100 MIME-Version: 1.0 In-Reply-To: <1480508956.20354.28.camel@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: Gerd Hoffmann Cc: qemu devel list On 11/30/16 13:29, Gerd Hoffmann wrote: > Hi, > >>> Want sent a patch? >> >> What file for? :) > > create something like scripts/git.orderfile, so people have just to run > "git config diff.orderfile scripts/git.orderfile" to enable it, and we > can refine the config without having everybody update the orderfile > manually? Good idea -- I didn't expect this to work, but it actually does. The -O command line option interprets a relative pathname relative to the working directory. However, if you place a relative pathname in diff.orderFile in .git/config, then git will look for the order file relative to the project root directory, not relative to your working directory (which could be any subdirectory of the project root directory). > >> I've considered modifying >> , but that article is >> humongous already. >> >> 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. > > Yep, adding to the wiki sounds good too. > >>> Can this be automatically enabled per repo, like .gitignore, so it works >>> without everybody tweaking its local git config? >> >> Not to my understanding. > > Too bad. I think recommending a simple git config command in the wiki, like you write above, should be fine. I guess I'll add this item (the patch and the wiki update) to my todo list... :) Thanks Laszlo