Received: from eggs.gnu.org ([2001:4830:134:3::10]:49343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCmgf-0004TT-3K for qemu-devel@nongnu.org; Fri, 02 Dec 2016 07:11:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCmgb-0000jc-81 for qemu-devel@nongnu.org; Fri, 02 Dec 2016 07:11:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60826) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cCmga-0000jF-Vy for qemu-devel@nongnu.org; Fri, 02 Dec 2016 07:11:29 -0500 References: <20161202104037.5456-1-lersek@redhat.com> <1480676373.13905.4.camel@redhat.com> From: Laszlo Ersek Message-ID: <4e40e7be-ee7f-42d6-5a35-263a28201f67@redhat.com> Date: Fri, 2 Dec 2016 13:11:24 +0100 MIME-Version: 1.0 In-Reply-To: <1480676373.13905.4.camel@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: Gerd Hoffmann Cc: Fam Zheng , "Michael S. Tsirkin" , Stefan Hajnoczi , qemu devel list , John Snow On 12/02/16 11:59, Gerd Hoffmann wrote: >> git config diff.orderFile scripts/git.orderfile > >> 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 @@ > > Is it possible to have comments in here? So we can place the git config > command above into into this file too? The documentation is silent on this, and I didn't want to experiment, so I checked the git source code. Yes, comments seem to be supported, see the prepare_order() function in "diffcore-order.c": /* cp to ep has one line */ if (*cp == '\n' || *cp == '#') ; /* comment */ How about the following comment: # Apply this diff order to your git configuration with the command # # git config diff.orderFile scripts/git.orderfile ? Thanks Laszlo >> +*.txt >> +configure >> +GNUmakefile >> +makefile >> +Makefile > > We also have Makefile.objs and Makefile.target, so "Makefile*" (like the > first version had IIRC) should work better. > >> +*.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 > > I guess there is more which could be placed here (i.e. files holding > infrastructure which makes sense to see first). But we can easily > refine that incrementally. That is the point to have this file in the > repo in the first place ;) > > cheers, > Gerd > >