@@ -127,9 +127,7 @@ fn path_ambiguous_suffix() {
127127// split at 3: a/x vs b/x c/x → suffix `x` (len 1)
128128// split at 7: a/x b/x vs c/x → suffix `x` (len 1)
129129//
130- // - git apply: rejects: "git diff header lacks filename information when
131- // removing 1 leading pathname component")
132- // - diffy: succeeds, picks first (leftmost) split
130+ // diffy succeeds (picks first/leftmost split); git apply rejects.
133131#[ test]
134132fn fail_ambiguous_suffix_tie ( ) {
135133 Case :: git ( "fail_ambiguous_suffix_tie" )
@@ -144,7 +142,6 @@ error: git diff header lacks filename information when removing 1 leading pathna
144142}
145143
146144// Both --- and +++ point to /dev/null.
147- // git apply rejects: "dev/null: No such file or directory"
148145#[ test]
149146fn fail_both_devnull ( ) {
150147 Case :: git ( "fail_both_devnull" )
@@ -181,10 +178,7 @@ fn path_custom_prefix() {
181178// Custom prefix without slash (e.g. `--src-prefix=foo --dst-prefix=bar`).
182179//
183180// Produces paths like `fooold.txt` / `barold.txt` with no `/` separator,
184- // making strip impossible. Both git apply and diffy fail:
185- // - git apply: "git diff header lacks filename information when removing 1
186- // leading pathname component"
187- // - diffy: paths don't match any input file
181+ // making strip impossible. Both git apply and diffy fail.
188182#[ test]
189183fn fail_prefix_no_slash ( ) {
190184 Case :: git ( "fail_prefix_no_slash" )
@@ -207,8 +201,7 @@ fn non_utf8_hunk_content() {
207201
208202// Single-file patch with junk between hunks.
209203//
210- // - git apply: errors ("patch fragment without header")
211- // - diffy: succeeds, ignores trailing junk (matches GNU patch behavior)
204+ // diffy succeeds (ignores trailing junk, matches GNU patch); git apply rejects.
212205#[ test]
213206fn junk_between_hunks ( ) {
214207 Case :: git ( "junk_between_hunks" )
0 commit comments