Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/tree/master/t/t4018 # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t4018` `113d62b` userdiff: add support for Swift Shlok Kulshreshtha committed 2026-07-21 ``` .. README 564 bash-arithmetic-function 42 bash-bashism-style-compact 87 bash-bashism-style-complete-line-capture 48 bash-bashism-style-function 45 bash-bashism-style-whitespace 46 bash-conditional-function 40 bash-missing-parentheses 87 bash-mixed-style-compact 46 bash-mixed-style-function 35 bash-nested-functions 66 bash-other-characters 30 bash-posix-style-compact 25 bash-posix-style-complete-line-capture 33 bash-posix-style-function 26 bash-posix-style-single-command-function 35 bash-posix-style-whitespace 36 bash-subshell-function 28 bash-trailing-comment 36 cpp-c++-function 59 cpp-class-constructor 37 cpp-class-constructor-mem-init 50 cpp-class-definition 32 cpp-class-definition-derived 52 cpp-class-destructor 31 cpp-function-returning-global-type 39 cpp-function-returning-nested 43 cpp-function-returning-pointer 51 cpp-function-returning-reference 49 cpp-gnu-style-function 43 cpp-namespace-definition 31 cpp-operator-definition 56 cpp-skip-access-specifiers 100 cpp-skip-comment-block 86 cpp-skip-labels 98 cpp-struct-definition 159 cpp-struct-single-line 63 cpp-template-function-definition 50 cpp-union-definition 43 cpp-void-c-function 33 csharp-exclude-assignments 434 csharp-exclude-control-statements 605 csharp-exclude-exceptions 459 csharp-exclude-generic-method-calls 189 csharp-exclude-init-dispose 344 csharp-exclude-iterations 498 csharp-exclude-method-calls 353 csharp-exclude-other 277 csharp-method 123 csharp-method-array 127 csharp-method-explicit 164 csharp-method-generics 180 csharp-method-generics-alternate-spaces 179 csharp-method-modifiers 204 csharp-method-multiline 127 csharp-method-params 150 csharp-method-special-chars 181 csharp-method-with-spacing 131 csharp-property 137 csharp-property-braces-same-line 133 css-attribute-value-selector 80 css-block-level-@-statements 184 css-brace-in-col-1 98 css-class-selector 70 css-colon-eol 30 css-colon-selector 90 css-common 98 css-id-selector 70 css-long-selector-list 116 css-prop-sans-indent 103 css-root-selector 70 css-short-selector-list 100 css-trailing-space 104 custom1-pattern 432 custom2-match-to-end-of-line 120 custom3-alternation-in-pattern 426 dts-labels 108 dts-node-unitless 98 dts-nodes 112 dts-nodes-boolean-prop 94 dts-nodes-comment1 129 dts-nodes-comment2 138 dts-nodes-multiline-prop 155 dts-reference 89 dts-root 116 dts-root-comment 180 elixir-do-not-pick-end 65 elixir-ex-unit-test 90 elixir-function 67 elixir-macro 56 elixir-module 106 elixir-module-func 97 elixir-nested-module 112 elixir-private-function 68 elixir-protocol 133 elixir-protocol-implementation 68 fortran-block-data 113 fortran-comment 174 fortran-comment-keyword 212 fortran-comment-legacy 162 fortran-comment-legacy-star 162 fortran-external-function 144 fortran-external-subroutine 54 fortran-module 45 fortran-module-procedure 249 fortran-program 48 fountain-scene 88 golang-complex-function 108 golang-func 40 golang-interface 49 golang-long-func 133 golang-struct 42 ini-section 82 ini-section-noindent 50 ini-section-same-line 74 ini-subsection 169 ini-subsection-noindent 115 java-class-brace-on-separate-line 81 java-class-member-function 187 java-class-space-before-type-parameters 131 java-class-type-parameters 108 java-class-type-parameters-implements 127 java-enum-constant 65 java-interface-type-parameters 118 java-interface-type-parameters-extends 141 java-method-return-generic-bounded 249 java-method-return-generic-wildcard 226 java-nested-field 133 java-non-sealed 218 java-record 150 java-record-space-before-components 159 java-record-type-parameters 161 java-sealed 166 java-sealed-permits 158 java-sealed-type-parameters 133 java-sealed-type-parameters-implements-permits 183 java-sealed-type-parameters-permits 164 kotlin-class 55 kotlin-enum-class 53 kotlin-fun 63 kotlin-inheritace-class 61 kotlin-inline-class 65 kotlin-interface 69 kotlin-nested-fun 96 kotlin-public-class 56 kotlin-sealed-class 61 markdown-heading-indented 117 markdown-heading-non-headings 390 matlab-class-definition 59 matlab-function 50 matlab-octave-section-1 56 matlab-octave-section-2 55 matlab-section 78 perl-skip-end-of-heredoc 127 perl-skip-forward-decl 152 perl-skip-sub-in-pod 225 perl-sub-definition 48 perl-sub-definition-kr-brace 35 php-abstract-class 53 php-abstract-method 110 php-class 44 php-enum 50 php-final-class 50 php-final-method 97 php-function 44 php-interface 56 php-method 90 php-trait 85 python-async-def 85 python-class 74 python-def 79 python-indented-async-def 125 python-indented-class 98 python-indented-def 119 r-indent 91 r-indent-nested 183 r-noindent 75 rust-fn 104 rust-impl 95 rust-macro-rules 89 rust-struct 87 rust-trait 133 scheme-class 162 scheme-def 83 scheme-def-variant 124 scheme-define-slash-public 149 scheme-define-syntax 252 scheme-define-variant 87 scheme-library 340 scheme-lisp-defun-a 85 scheme-lisp-defun-b 106 scheme-lisp-eval-when 181 scheme-local-define 105 scheme-module-a 235 scheme-module-b 235 scheme-top-level-define 86 scheme-user-defined-define 249 swift-actor 68 swift-attribute-with-args 133 swift-class 68 swift-enum 65 swift-extension 86 swift-failable-init 107 swift-func 81 swift-generic-subscript 132 swift-init 106 swift-inline-attribute 118 swift-modifiers 75 swift-protocol 96 swift-struct 69 ``` README ``` 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. ```