From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: [PATCH kvm-unit-tests] Add git.orderFile Date: Thu, 8 Dec 2016 16:39:19 +0100 Message-ID: <20161208153919.29773-1-drjones@redhat.com> Cc: rkrcmar@redhat.com, pbonzini@redhat.com, lvivier@redhat.com, thuth@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:59304 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753437AbcLHPjX (ORCPT ); Thu, 8 Dec 2016 10:39:23 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (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 306E77FD43 for ; Thu, 8 Dec 2016 15:39:23 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: It's helpful to have a standard sequence of file types in patches. Applying git-diff's orderFile feature allows us to do that. Just do 'git config diff.orderFile scripts/git.orderfile' to enable it. Signed-off-by: Andrew Jones --- This was inspired by Laszlo's patch for QEMU. Anyway it's high time somebody posts some good kvm-unit-tests bikeshedding bait! --- README | 4 ++++ scripts/git.orderfile | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 scripts/git.orderfile diff --git a/README b/README index f8f196d90bf1..73fdd526aed7 100644 --- a/README +++ b/README @@ -66,3 +66,7 @@ You can add the following to .git/config to do this automatically for you: [format] subjectprefix = kvm-unit-tests PATCH +Additionally it's helpful to have a standard sequence of file types in +patches. Applying git-diff's orderFile feature allows us to do that. +The orderFile we use is scripts/git.orderfile. Adding the diff.orderFile +config (git config diff.orderFile scripts/git.orderfile) will enable it. diff --git a/scripts/git.orderfile b/scripts/git.orderfile new file mode 100644 index 000000000000..b98a0e78a37e --- /dev/null +++ b/scripts/git.orderfile @@ -0,0 +1,15 @@ +COPYRIGHT +MAINTAINERS +*README +configure +*Makefile* +*.mak +*.py +*.bash +*/run +*.sh +*.cfg +*.lds +*.h +*.S +*.c -- 2.9.3