From 3b6bb28a6c5ce35e652902661a23d643f02531c8 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 17 Jul 2017 12:16:32 +0200 Subject: [PATCH 1/2] add scripts/git.orderfile Based on a old patch by Laszlo. Time to get this in ... Signed-off-by: Gerd Hoffmann Reviewed-by: Eric Blake Reviewed-by: Emilio G. Cota Message-id: 20170717101632.23247-1-kraxel@redhat.com --- scripts/git.orderfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 scripts/git.orderfile diff --git a/scripts/git.orderfile b/scripts/git.orderfile new file mode 100644 index 0000000000..ac699700b1 --- /dev/null +++ b/scripts/git.orderfile @@ -0,0 +1,29 @@ +# +# order file for git, to produce patches which are easier to review +# by diffing the important stuff like interface changes first. +# +# one-off usage: +# git diff -O scripts/git.orderfile ... +# +# add to git config: +# git config diff.orderFile scripts/git.orderfile +# + +# Documentation +docs/* +*.texi + +# build system +configure +Makefile* +*.mak + +# qapi schema +*.json + +# headers +*.h + +# code +*.c + From a62e20f6f84d747e55891a0d8aadd0737297571e Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 17 Jul 2017 12:15:47 +0200 Subject: [PATCH 2/2] add editorconfig Add a .editorconfig file for qemu. Specifies the indent and tab style for various files (C code and Makefiles for starters). Most popular editors support this either natively or via plugin. Check http://editorconfig.org/ for details. Signed-off-by: Gerd Hoffmann Message-id: 20170717101547.22295-1-kraxel@redhat.com --- .editorconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..b2022e391a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# http://editorconfig.org +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +[Makefile*] +indent_style = tab +indent_size = 8 + +[*.{c,h}] +indent_style = space +indent_size = 4