Received: from eggs.gnu.org ([2001:4830:134:3::10]:60483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCoti-0003Rp-Ny for qemu-devel@nongnu.org; Fri, 02 Dec 2016 09:33:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCotf-000490-Ka for qemu-devel@nongnu.org; Fri, 02 Dec 2016 09:33:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58506) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cCotf-00048v-C2 for qemu-devel@nongnu.org; Fri, 02 Dec 2016 09:33:07 -0500 References: <20161202104037.5456-1-lersek@redhat.com> From: Max Reitz Message-ID: <8259e744-9919-bfa7-4a98-28c1fcac13c7@redhat.com> Date: Fri, 2 Dec 2016 15:33:02 +0100 MIME-Version: 1.0 In-Reply-To: <20161202104037.5456-1-lersek@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="EQIaNTR51PfewngO55OBnd7TxDN8SkNI1" Subject: Re: [Qemu-devel] [PATCH] scripts: add "git.orderfile" for ordering diff hunks by pathname patterns List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek , qemu devel list Cc: Fam Zheng , "Michael S. Tsirkin" , Stefan Hajnoczi , Gerd Hoffmann , John Snow This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --EQIaNTR51PfewngO55OBnd7TxDN8SkNI1 From: Max Reitz To: Laszlo Ersek , qemu devel list Cc: Fam Zheng , "Michael S. Tsirkin" , Stefan Hajnoczi , Gerd Hoffmann , John Snow Message-ID: <8259e744-9919-bfa7-4a98-28c1fcac13c7@redhat.com> Subject: Re: [Qemu-devel] [PATCH] scripts: add "git.orderfile" for ordering diff hunks by pathname patterns References: <20161202104037.5456-1-lersek@redhat.com> In-Reply-To: <20161202104037.5456-1-lersek@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 02.12.2016 11:40, Laszlo Ersek wrote: > When passed to git-diff (and to every other git command producing diffs= > and/or diffstats) with "-O" or "diff.orderFile", this list of patterns > will place the more declarative / abstract hunks first, while changes t= o > imperative code / details will be near the end of the patches. This sav= es > on scrolling / searching and makes for easier reviewing. >=20 > We intend to advise contributors in the Wiki to run >=20 > git config diff.orderFile scripts/git.orderfile >=20 > once, as part of their initial setup, before formatting their first (or= , > for repeat contributors, next) patches. >=20 > See the "-O" option and the "diff.orderFile" configuration variable in > git-diff(1) and git-config(1). >=20 > Cc: "Michael S. Tsirkin" > Cc: Eric Blake > Cc: Fam Zheng > Cc: Gerd Hoffmann > Cc: John Snow > Cc: Stefan Hajnoczi > Signed-off-by: Laszlo Ersek > --- >=20 > Notes: > I think I managed to incorporate everyone's feedback! >=20 > scripts/git.orderfile | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > create mode 100644 scripts/git.orderfile >=20 > diff --git a/scripts/git.orderfile b/scripts/git.orderfile > new file mode 100644 > index 000000000000..600a2e4fc540 > --- /dev/null > +++ b/scripts/git.orderfile > @@ -0,0 +1,15 @@ > +*.txt We also have *.md. (OK, OK, we have a single docs/bitmaps.md, but maybe it's going to be more in the future. :-)) Max > +configure > +GNUmakefile > +makefile > +Makefile > +*.mak > +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 >=20 --EQIaNTR51PfewngO55OBnd7TxDN8SkNI1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEkb62CjDbPohX0Rgp9AfbAGHVz0AFAlhBhh4SHG1yZWl0ekBy ZWRoYXQuY29tAAoJEPQH2wBh1c9AY9YIAK1/zgNQ5H84GW2CiQ/TdcJcwLCTPshw p+vB07RMqYMmzDwaJbmEhbkEzQOahcA66zw0PgcQXSsH3HA3VDze08FKD+uBwLQS unt/prFg+nzfs+ma1hrSzpfniM3rM3nWDaSrK3T7L3zms7/HUgKgmU36GYn9sBnK ae8o8HarXLvDklYMgit2VeLcdIIaex/mz3rJohl/XNRxQDo0SoxWqL0d8kwgTcib LlEXFL820NYC5y2Qi0GHB0Bb1cH6Bk2r4vQ8D3iiC/VUPaIwZkFao/Pu1vpGCQVH yc6RRQ/lucQcVfSY0dfuuCrQZlOVGKJTamfvY9Ky9gTTobP3lJa4N2I= =7Znr -----END PGP SIGNATURE----- --EQIaNTR51PfewngO55OBnd7TxDN8SkNI1--