• duckduckduck@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    5 days ago

    Neat, but I don’t like how it highlight the entire like if I change just one character on that line.

    Maybe there’s a setting I’m missing, but I really like diff-so-fancy for legibility of changed lines.

    For example if I’ve got like these changes:

    --- a	2026-06-01 14:36:20.699016620 -0400
    +++ b	2026-06-01 14:36:21.842027381 -0400
    @@ -1,11 +1,10 @@
     foo
     bar
    -baz
    +bazz
     
     foo
    -bar
     baz
     
    -foo
    +bar
     bar
     baz
    

    difft shows me:

    size by side diff with entire lines highlighted in red or green

    but diff-so-fancy shows me:

    unified diff with word highlighting

    Imho it’s easier to read the pertinent info in the latter, where you’ve got that attractive word diffing on changed lines.

    I do like the conditional side-by-side and unified diffing, though. That’s huge.

  • Novi Sad@feddit.org
    link
    fedilink
    arrow-up
    4
    ·
    1 month ago

    Thanks!

    If anyone wants to make git diff use it:

    $ git config --global diff.external difft