mirror of
https://github.com/git/git.git
synced 2024-12-27 10:44:37 +08:00
3c81760bc6
The Linux kernel receives many patches to the devicetree files each release. The hunk header for those patches typically show nothing, making it difficult to figure out what node is being modified without applying the patch or opening the file and seeking to the context. Let's add a builtin 'dts' pattern to git so that users can get better diff output on dts files when they use the diff=dts driver. The regex has been constructed based on the spec at devicetree.org[1] and with some help from Johannes Sixt. [1] https://github.com/devicetree-org/devicetree-specification/releases/latest Cc: Rob Herring <robh+dt@kernel.org> Cc: Frank Rowand <frowand.list@gmail.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
9 lines
129 B
Plaintext
9 lines
129 B
Plaintext
/ {
|
|
label_1: node1@ff00 {
|
|
RIGHT@deadf00,4000 /* &a comment */ {
|
|
#size-cells = <1>;
|
|
ChangeMe = <0xffeedd00>;
|
|
};
|
|
};
|
|
};
|