Skip to content

Commit 67f8f1e

Browse files
Leonardo Brasmasahir0y
authored andcommitted
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 <[email protected]> Acked-by: Randy Dunlap <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 15d3f76 commit 67f8f1e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

scripts/git.orderFile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
# order file for git, to produce patches which are easier to review
4+
# by diffing the important stuff like header changes first.
5+
#
6+
# one-off usage:
7+
# git diff -O scripts/git.orderFile ...
8+
#
9+
# add to git config:
10+
# git config diff.orderFile scripts/git.orderFile
11+
#
12+
13+
MAINTAINERS
14+
15+
# Documentation
16+
Documentation/*
17+
*.rst
18+
19+
# git-specific
20+
.gitignore
21+
scripts/git.orderFile
22+
23+
# build system
24+
Kconfig*
25+
*/Kconfig*
26+
Kbuild*
27+
*/Kbuild*
28+
Makefile*
29+
*/Makefile*
30+
*.mak
31+
*.mk
32+
scripts/*
33+
34+
# semantic patches
35+
*.cocci
36+
37+
# headers
38+
*types.h
39+
*.h
40+
41+
# code
42+
*.c

0 commit comments

Comments
 (0)