summaryrefslogtreecommitdiff
path: root/scripts/git.orderFile
diff options
context:
space:
mode:
authorLeonardo Bras <leobras@redhat.com>2023-12-11 19:13:36 -0300
committerMasahiro Yamada <masahiroy@kernel.org>2023-12-29 22:25:20 +0900
commit67f8f1e7aa31b6fe17aeee1c581f61fc3dfa331a (patch)
treea02cf55040e34a55b215a8369bd1fcbc74632c1c /scripts/git.orderFile
parent15d3f7664d2776c086f813f1efbfe2ae20a85e89 (diff)
downloadlwn-67f8f1e7aa31b6fe17aeee1c581f61fc3dfa331a.tar.gz
lwn-67f8f1e7aa31b6fe17aeee1c581f61fc3dfa331a.zip
scripts: Introduce a default git.orderFile
When reviewing patches, it looks much nicer to have some changes shown before others, which allow better understanding of the patch before the the .c files reviewing. Introduce a default git.orderFile, in order to help developers getting the best ordering easier. Signed-off-by: Leonardo Bras <leobras@redhat.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/git.orderFile')
-rw-r--r--scripts/git.orderFile42
1 files changed, 42 insertions, 0 deletions
diff --git a/scripts/git.orderFile b/scripts/git.orderFile
new file mode 100644
index 000000000000..5102ba73357f
--- /dev/null
+++ b/scripts/git.orderFile
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: GPL-2.0
+
+# order file for git, to produce patches which are easier to review
+# by diffing the important stuff like header changes first.
+#
+# one-off usage:
+# git diff -O scripts/git.orderFile ...
+#
+# add to git config:
+# git config diff.orderFile scripts/git.orderFile
+#
+
+MAINTAINERS
+
+# Documentation
+Documentation/*
+*.rst
+
+# git-specific
+.gitignore
+scripts/git.orderFile
+
+# build system
+Kconfig*
+*/Kconfig*
+Kbuild*
+*/Kbuild*
+Makefile*
+*/Makefile*
+*.mak
+*.mk
+scripts/*
+
+# semantic patches
+*.cocci
+
+# headers
+*types.h
+*.h
+
+# code
+*.c