Thread (12 messages) 12 messages, 4 authors, 1d ago

Re: [PATCH v2] userdiff: add support for Swift

From: Michael Montalbo <hidden>
Date: 2026-07-27 17:37:20

On Sun, Jul 26, 2026 at 11:44 PM Johannes Sixt [off-list ref] wrote:
Am 27.07.26 um 07:03 schrieb Michael Montalbo:
quoted
On Tue, Jul 21, 2026 at 12:06 AM Shlok Kulshreshtha [off-list ref] wrote:
quoted
Add a built-in userdiff driver for the Swift programming language so that
diff hunk headers and word diffs work out of the box for ".swift" files.
I noticed other languages add a test_language_driver entry to
t/t4034-diff-words.sh with corresponding pre/post/expect
fixtures. Should we add something similar for Swift?
[snip]
In the past, these test scripts turned out to
be non-trivial to get correct and it was a burden for both the author
and the reviewers. It would certainly exceed the scope of a microproject.
Got it, thanks for the context.

FWIW, I tested the changes against a recent WWDC 2026 sample
project[1] I was playing around with, and the new user driver appears
to work well.

[1] https://developer.apple.com/documentation/FoundationModels/origami-crafting-a-dynamic-tutorial-for-apple-intelligence
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help