From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPwKs-0001ZI-Im for qemu-devel@nongnu.org; Tue, 27 Jun 2017 15:39:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPwKn-0004aP-LE for qemu-devel@nongnu.org; Tue, 27 Jun 2017 15:39:42 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:34463) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dPwKn-0004Zi-9v for qemu-devel@nongnu.org; Tue, 27 Jun 2017 15:39:37 -0400 Date: Tue, 27 Jun 2017 15:39:35 -0400 From: "Emilio G. Cota" Message-ID: <20170627193935.GA25367@flamenco> References: <20161202210152.6880-1-lersek@redhat.com> <20170627185152.GA20939@flamenco> <20170627221515-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170627221515-mutt-send-email-mst@kernel.org> Subject: Re: [Qemu-devel] [PATCH v2] scripts: add "git.orderfile" for ordering diff hunks by pathname patterns List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Laszlo Ersek , qemu devel list , Fam Zheng , Max Reitz , Gerd Hoffmann , Stefan Hajnoczi , John Snow On Tue, Jun 27, 2017 at 22:16:39 +0300, Michael S. Tsirkin wrote: > On Tue, Jun 27, 2017 at 02:51:52PM -0400, Emilio G. Cota wrote: > > On Fri, Dec 02, 2016 at 22:01:52 +0100, 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 to > > > imperative code / details will be near the end of the patches. This saves > > > on scrolling / searching and makes for easier reviewing. > > > > > > We intend to advise contributors in the Wiki to run > > > > > > git config diff.orderFile scripts/git.orderfile > > > > > > once, as part of their initial setup, before formatting their first (or, > > > for repeat contributors, next) patches. > > > > > > See the "-O" option and the "diff.orderFile" configuration variable in > > > git-diff(1) and git-config(1). > > > > > > Cc: "Michael S. Tsirkin" > > > Cc: Eric Blake > > > Cc: Fam Zheng > > > Cc: Gerd Hoffmann > > > Cc: John Snow > > > Cc: Max Reitz > > > Cc: Stefan Hajnoczi > > > Signed-off-by: Laszlo Ersek > > > --- > > > > Refloating 6+ months later, but.. > > > > Someone please merge this! :-) > > > > E. > > Users should be aware that if they do this, the need to > supply -O /dev/null to git pull-request. Otherwise the > diffstat is all scrambled and you can't figure out > what's included. I'd do the opposite: recommend passing '-O scripts/git.orderfile' to git-format patch, and leave the default for all other commands. E.