]> git.ipfire.org Git - thirdparty/git.git/commit
userdiff: add builtin diff driver for kotlin language.
authorJaydeep P Das <jaydeepjd.8914@gmail.com>
Sat, 12 Mar 2022 04:48:32 +0000 (10:18 +0530)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 Mar 2022 02:15:47 +0000 (18:15 -0800)
commit09188ed930bcb08e56d1846fbf9f5cb972a2d188
treeb4fec1636c1447a69ad3527ffb3edb456802ce7b
parent715d08a9e51251ad8290b181b6ac3b9e1f9719d7
userdiff: add builtin diff driver for kotlin language.

The xfuncname pattern finds func/class declarations
in diffs to display as a hunk header. The word_regex
pattern finds individual tokens in Kotlin code to generate
appropriate diffs.

This patch adds xfuncname regex and word_regex for Kotlin
language.

Signed-off-by: Jaydeep P Das <jaydeepjd.8914@gmail.com>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
15 files changed:
Documentation/gitattributes.txt
t/t4018/kotlin-class [new file with mode: 0644]
t/t4018/kotlin-enum-class [new file with mode: 0644]
t/t4018/kotlin-fun [new file with mode: 0644]
t/t4018/kotlin-inheritace-class [new file with mode: 0644]
t/t4018/kotlin-inline-class [new file with mode: 0644]
t/t4018/kotlin-interface [new file with mode: 0644]
t/t4018/kotlin-nested-fun [new file with mode: 0644]
t/t4018/kotlin-public-class [new file with mode: 0644]
t/t4018/kotlin-sealed-class [new file with mode: 0644]
t/t4034-diff-words.sh
t/t4034/kotlin/expect [new file with mode: 0644]
t/t4034/kotlin/post [new file with mode: 0644]
t/t4034/kotlin/pre [new file with mode: 0644]
userdiff.c