git-commit-vandalism/t/t4018
Jaydeep P Das 09188ed930 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>
2022-03-12 18:15:47 -08:00
..
bash-arithmetic-function
bash-bashism-style-compact userdiff: support Bash 2020-10-22 10:29:30 -07:00
bash-bashism-style-function
bash-bashism-style-whitespace
bash-conditional-function userdiff: support Bash 2020-10-22 10:29:30 -07:00
bash-missing-parentheses userdiff: support Bash 2020-10-22 10:29:30 -07:00
bash-mixed-style-compact
bash-mixed-style-function
bash-nested-functions
bash-other-characters userdiff: support Bash 2020-10-22 10:29:30 -07:00
bash-posix-style-compact
bash-posix-style-function
bash-posix-style-whitespace
bash-subshell-function
bash-trailing-comment
cpp-c++-function
cpp-class-constructor
cpp-class-constructor-mem-init
cpp-class-definition
cpp-class-definition-derived t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
cpp-class-destructor
cpp-function-returning-global-type
cpp-function-returning-nested userdiff: have 'cpp' hunk header pattern catch more C++ anchor points 2014-03-21 15:03:32 -07:00
cpp-function-returning-pointer t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
cpp-function-returning-reference userdiff: have 'cpp' hunk header pattern catch more C++ anchor points 2014-03-21 15:03:32 -07:00
cpp-gnu-style-function userdiff: have 'cpp' hunk header pattern catch more C++ anchor points 2014-03-21 15:03:32 -07:00
cpp-namespace-definition userdiff: have 'cpp' hunk header pattern catch more C++ anchor points 2014-03-21 15:03:32 -07:00
cpp-operator-definition
cpp-skip-access-specifiers t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
cpp-skip-comment-block
cpp-skip-labels
cpp-struct-definition
cpp-struct-single-line userdiff: have 'cpp' hunk header pattern catch more C++ anchor points 2014-03-21 15:03:32 -07:00
cpp-template-function-definition
cpp-union-definition userdiff: have 'cpp' hunk header pattern catch more C++ anchor points 2014-03-21 15:03:32 -07:00
cpp-void-c-function t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
css-attribute-value-selector userdiff: expand detected chunk headers for css 2020-10-08 10:21:11 -07:00
css-block-level-@-statements
css-brace-in-col-1 userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-class-selector userdiff: expand detected chunk headers for css 2020-10-08 10:21:11 -07:00
css-colon-eol
css-colon-selector userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-common userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-id-selector userdiff: expand detected chunk headers for css 2020-10-08 10:21:11 -07:00
css-long-selector-list userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-prop-sans-indent userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-root-selector userdiff: expand detected chunk headers for css 2020-10-08 10:21:11 -07:00
css-short-selector-list userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-trailing-space userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
custom1-pattern t4018: convert custom pattern test to the new infrastructure 2014-03-21 15:02:57 -07:00
custom2-match-to-end-of-line
custom3-alternation-in-pattern
dts-labels
dts-node-unitless
dts-nodes userdiff: add a builtin pattern for dts files 2019-08-21 15:09:34 -07:00
dts-nodes-boolean-prop
dts-nodes-comment1
dts-nodes-comment2 userdiff: add a builtin pattern for dts files 2019-08-21 15:09:34 -07:00
dts-nodes-multiline-prop
dts-reference userdiff: add a builtin pattern for dts files 2019-08-21 15:09:34 -07:00
dts-root userdiff: fix some corner cases in dts regex 2019-10-21 17:44:12 +09:00
dts-root-comment
elixir-do-not-pick-end userdiff: add Elixir to supported userdiff languages 2019-11-10 15:26:26 +09:00
elixir-ex-unit-test userdiff: add Elixir to supported userdiff languages 2019-11-10 15:26:26 +09:00
elixir-function
elixir-macro
elixir-module userdiff: add Elixir to supported userdiff languages 2019-11-10 15:26:26 +09:00
elixir-module-func userdiff: add Elixir to supported userdiff languages 2019-11-10 15:26:26 +09:00
elixir-nested-module
elixir-private-function
elixir-protocol userdiff: add Elixir to supported userdiff languages 2019-11-10 15:26:26 +09:00
elixir-protocol-implementation userdiff: add Elixir to supported userdiff languages 2019-11-10 15:26:26 +09:00
fortran-block-data
fortran-comment userdiff: add tests for Fortran xfuncname regex 2020-08-13 11:21:17 -07:00
fortran-comment-keyword
fortran-comment-legacy userdiff: add tests for Fortran xfuncname regex 2020-08-13 11:21:17 -07:00
fortran-comment-legacy-star
fortran-external-function
fortran-external-subroutine
fortran-module userdiff: add tests for Fortran xfuncname regex 2020-08-13 11:21:17 -07:00
fortran-module-procedure
fortran-program userdiff: add tests for Fortran xfuncname regex 2020-08-13 11:21:17 -07:00
fountain-scene
golang-complex-function userdiff: add built-in pattern for golang 2018-03-01 13:36:49 -08:00
golang-func userdiff: add built-in pattern for golang 2018-03-01 13:36:49 -08:00
golang-interface userdiff: add built-in pattern for golang 2018-03-01 13:36:49 -08:00
golang-long-func
golang-struct userdiff: add built-in pattern for golang 2018-03-01 13:36:49 -08:00
java-class-member-function userdiff: improve java hunk header regex 2021-08-11 11:11:30 -07:00
java-enum-constant userdiff: improve java hunk header regex 2021-08-11 11:11:30 -07:00
java-method-return-generic-bounded
java-method-return-generic-wildcard
java-nested-field userdiff: improve java hunk header regex 2021-08-11 11:11:30 -07:00
kotlin-class userdiff: add builtin diff driver for kotlin language. 2022-03-12 18:15:47 -08:00
kotlin-enum-class userdiff: add builtin diff driver for kotlin language. 2022-03-12 18:15:47 -08:00
kotlin-fun userdiff: add builtin diff driver for kotlin language. 2022-03-12 18:15:47 -08:00
kotlin-inheritace-class userdiff: add builtin diff driver for kotlin language. 2022-03-12 18:15:47 -08:00
kotlin-inline-class userdiff: add builtin diff driver for kotlin language. 2022-03-12 18:15:47 -08:00
kotlin-interface userdiff: add builtin diff driver for kotlin language. 2022-03-12 18:15:47 -08:00
kotlin-nested-fun userdiff: add builtin diff driver for kotlin language. 2022-03-12 18:15:47 -08:00
kotlin-public-class userdiff: add builtin diff driver for kotlin language. 2022-03-12 18:15:47 -08:00
kotlin-sealed-class userdiff: add builtin diff driver for kotlin language. 2022-03-12 18:15:47 -08:00
markdown-heading-indented
markdown-heading-non-headings
matlab-class-definition
matlab-function userdiff: add Octave 2019-05-19 10:45:28 +09:00
matlab-octave-section-1
matlab-octave-section-2 userdiff: add Octave 2019-05-19 10:45:28 +09:00
matlab-section
perl-skip-end-of-heredoc t4018: convert perl pattern tests to the new infrastructure 2014-03-21 15:02:19 -07:00
perl-skip-forward-decl t4018: convert perl pattern tests to the new infrastructure 2014-03-21 15:02:19 -07:00
perl-skip-sub-in-pod
perl-sub-definition
perl-sub-definition-kr-brace
php-abstract-class
php-abstract-method userdiff: PHP: catch "abstract" and "final" functions 2020-10-07 08:45:43 -07:00
php-class t4018: add missing test cases for PHP 2018-07-06 14:56:42 -07:00
php-enum userdiff: support enum keyword in PHP hunk header 2021-08-31 12:13:36 -07:00
php-final-class
php-final-method userdiff: PHP: catch "abstract" and "final" functions 2020-10-07 08:45:43 -07:00
php-function
php-interface userdiff: support new keywords in PHP hunk header 2018-07-06 14:59:28 -07:00
php-method
php-trait
python-async-def userdiff: support Python async functions 2019-11-20 16:31:43 +09:00
python-class userdiff: support Python async functions 2019-11-20 16:31:43 +09:00
python-def userdiff: support Python async functions 2019-11-20 16:31:43 +09:00
python-indented-async-def
python-indented-class userdiff: support Python async functions 2019-11-20 16:31:43 +09:00
python-indented-def
README userdiff: remove support for "broken" tests 2021-04-08 12:19:10 -07:00
rust-fn userdiff: add built-in pattern for rust 2019-05-17 12:54:02 +09:00
rust-impl userdiff: add built-in pattern for rust 2019-05-17 12:54:02 +09:00
rust-macro-rules userdiff: recognize 'macro_rules!' as starting a Rust function block 2020-10-07 08:48:20 -07:00
rust-struct userdiff: add built-in pattern for rust 2019-05-17 12:54:02 +09:00
rust-trait userdiff: add built-in pattern for rust 2019-05-17 12:54:02 +09:00
scheme-class
scheme-def userdiff: add support for Scheme 2021-04-08 13:56:09 -07:00
scheme-def-variant userdiff: add support for Scheme 2021-04-08 13:56:09 -07:00
scheme-define-slash-public
scheme-define-syntax
scheme-define-variant userdiff: add support for Scheme 2021-04-08 13:56:09 -07:00
scheme-library
scheme-local-define
scheme-module
scheme-top-level-define userdiff: add support for Scheme 2021-04-08 13:56:09 -07:00
scheme-user-defined-define

How to write RIGHT test cases
=============================

Insert the word "ChangeMe" (exactly this form) at a distance of
at least two lines from the line that must appear in the hunk header.

The text that must appear in the hunk header must contain the word
"right", but in all upper-case, like in the title above.

This text is a bit twisted and out of order, but it is itself a
test case for the default hunk header pattern. Know what you are doing
if you change it.

BTW, this tests that the head line goes to the hunk header, not the line
of equal signs.