Received: from eggs.gnu.org ([2001:4830:134:3::10]:42200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC70b-000883-N1 for qemu-devel@nongnu.org; Wed, 30 Nov 2016 10:41:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cC70Y-0004qd-LF for qemu-devel@nongnu.org; Wed, 30 Nov 2016 10:41:21 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37920) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cC70Y-0004qO-D2 for qemu-devel@nongnu.org; Wed, 30 Nov 2016 10:41:18 -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 87EFD4DD44 for ; Wed, 30 Nov 2016 15:41:17 +0000 (UTC) References: <9151aa4b-44ed-ee0f-4dac-581931b3e899@redhat.com> From: Eric Blake Message-ID: <2398cef0-35e9-0877-434f-506037c72c45@redhat.com> Date: Wed, 30 Nov 2016 09:41:16 -0600 MIME-Version: 1.0 In-Reply-To: <9151aa4b-44ed-ee0f-4dac-581931b3e899@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hPKF8C6K8FJ5b22hvedTVHR2bk8ehCJPr" 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: Laszlo Ersek , qemu devel list This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hPKF8C6K8FJ5b22hvedTVHR2bk8ehCJPr From: Eric Blake To: Laszlo Ersek , qemu devel list Message-ID: <2398cef0-35e9-0877-434f-506037c72c45@redhat.com> Subject: Re: [Qemu-devel] a suggestion to place *.c hunks last in patches References: <9151aa4b-44ed-ee0f-4dac-581931b3e899@redhat.com> In-Reply-To: <9151aa4b-44ed-ee0f-4dac-581931b3e899@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/30/2016 04:08 AM, Laszlo Ersek wrote: > Recent git releases support the diff.orderFile permanent setting. (In > older releases, the -O option had to be specified on the command line, > or in aliases, for the same effect, which was quite inconvenient.) From= > git-diff(1): >=20 > -O > Output the patch in the order specified in the , > which has one shell glob pattern per line. This overrides > the diff.orderFile configuration variable (see git- > config(1)). To cancel diff.orderFile, use -O/dev/null. >=20 > In my experience, an order file such as: >=20 > configure > *Makefile* > *.json > *.txt > *.h > *.c >=20 > that is, a priority order that goes from > descriptive/declarative/abstract to imperative/specific works wonders > for reviewing. I've been doing this for some time now, although I sometimes tweak the order on a per-series basis to highlight what I think is most interesting in that series. My current order file contents are: qapi-schema*.json qapi/*.json include/qapi/visitor.h include/qapi/visitor-impl.h scripts/qapi.py scripts/*.py *.h qapi/qapi-visit-core.c *.c stemming from a patch series that touched visitor interfaces. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --hPKF8C6K8FJ5b22hvedTVHR2bk8ehCJPr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYPvMcAAoJEKeha0olJ0NqsJYH/icjUmPXHOnUWlZR6BqLk2w6 yfGd1D+PU03+/cP0UxZmnwCwgGPm/Hufp4gNT1Rc2Hox1zEJhVg21iYkQJ+CDE06 myFIxjxb91t7d29kBJ7rDn+EWoNQXN9AbYmGbYAPpMJnERloByh8/qCJ+Z9tPlSe TEYxc0yy1GXGhtnpHfn6uhCkfd5BRm3cUUDqSsj79Kj9f08CaxetZy2NZunnmr1r qaCnV0KXetPv155izktu1JkCBBnSWht94Ux8/wag5oYVSOxqTsL+eVbpMyrk3T6q zIPb6BS4kjiPY9w/RwRHU9baSiQCedOF3wFWqNtYnHUK9G6h+qaP23A2dv4fQGk= =mwVo -----END PGP SIGNATURE----- --hPKF8C6K8FJ5b22hvedTVHR2bk8ehCJPr--