home.social

#difftastic — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #difftastic, aggregated by home.social.

fetched live
  1. Just tried difftastic and it's really cool.
    difftastic.wilfred.me.uk/

    The diffs are really helpful to be honest. A small but impactful improvement in workflow.
    In my jj config, I used difftastic as the default diff tool. Thanks to home manager I already got an option to just to my jj config🙂.

    #difftastic
    #nix #homemanager #jj #config #diff #tool #git

    Any such tool recommendations are welcome 😊
    Thanks in advance

  2. Salut @pascal_le_merrer

    En plus de #difftastic, j'utilise aussi #Delta

    Je trouve l'affichage plus facile à comprendre dans la plupart des cas

    Delta permet notamment de :
    * cacher le numéro de chaque ligne : permettant de copier d'ancienne ligne sans devoir supprimer les numéros des lignes à la main
    * afficher les lignes supprimées / ajoutées avec une couleur
    * afficher les mots supprimés / ajoutés avec une autre couleur

    dandavison.github.io/delta/

    Tu connais ?

    #git #dev

  3. My gym buddy Maddie just pointed out to me that the advantage of delta [1] over #difftastic [2] is that delta does syntax highlighting in the diff!

    I am really tempted to switch to delta for that one spiffy feature.

    [1] github.com/dandavison/delta

    [2] github.com/Wilfred/difftastic/

  4. @abcdw Yes, *can* produce a much nicer diff, but only in some cases like this. I have several diff aliases, because there isn't one to rule them all. My favorite is

    git diff --word-diff=color --word-diff-regex='[^[:space:][:punct:]]+'

    Not perfect as it swallows some non-text characters, but very compact, whereas difftastic is often very noisy for me.

  5. Trying out structural diffs. The diffs using language's syntax instead of just text lines.

    and all that.

    youtube.com/live/pARy5XnLHKQ

  6. I'm feeling chatty today. Something else I did recently is switch from diff-so-fancy to difftastic as my diff/gitdiff tool.

    difftastic.wilfred.me.uk/

    I like the format of #difftastic much more. It is smart enough to output side-by-side diffs when they make sense and inline or vertical diffs when those make sense.

    I recommend trying it out!

  7. I finally started using ... and it's brilliant! 😍

    I got so used to mentally parsing what changes, I hadn't noticed how much until truly trying this out. 😅

    Moral of the story: try new things. You may find something good. 😎

    difftastic.wilfred.me.uk/intro

  8. Hi @wilfredh, are you still interested in getting #difftastic packaged for #debian? On the debian side, it's now looking pretty good: #treesitter grammars are being packaged (tree-sitter 0.21 currently in unstable, 0.25 in experimental). So if we managed to unvendor all the parsers out of difftastic, we'd be really close! I'm wondering if I can help with the unvendoring - would you welcome PRs towards that?

  9. @sandro just like #difftastic is syntax-aware, we need a grep with the same capabilities.

    All too often I fail to find a line of code because it's wrapped or there's an unexpected variable interpolation in the middle of a string etc.

  10. Since y'all liked 🔀🦒 #Mergiraf so much (a syntax-aware #git #merge driver that solves many conflicts automatically that git's built-in merge strategies can't), go check out ≏🤩 #Difftastic too! It's a syntax-aware #diff tool that produces finer grained, much easier to read output than classic #GNU #diffutils or #BSD diff. No more decoding "@@ -5,6 +5,7 @@"! Integrates nicely with #git as well.

    difftastic.wilfred.me.uk/

    #opensource #coding #programming #cvs #difftool

  11. @jbaty You can use the amazing difftastic to diff directories visually. Its beautiful and "Just Works"

    ```
    difft <dir1> <dir2>
    ```

    difftastic.wilfred.me.uk/

  12. @blaue_Fledermaus

    Adding support for #difftastic

    difftastic.wilfred.me.uk/git.h

    Using

    ```
    [includeIf "gitdir:~/work/"]
    path = ~/path/to/work/.gitconfig
    [includeIf "gitdir:~/personal/"]
    path = ~/path/to/pesronal/.gitconfig
    ```

    so you can use different git configurations for different paths.

    Using diff3 for conflicts

    ```
    [merge]
    conflictStyle = diff3
    ```

  13. I have the fantastic configured as my default in

    This works well for me 99% of the time but on the rare occasion I need to produce a patch it doesn't.

    The solution...add an alias.

    ```
    [alias]
    patch = diff --no-ext-diff
    ```

    (Thankfully `git patch` isn't taken although `git patch-id` does exist).

  14. The popularity of "modern" replacements for classic #unix #commandline tools is an interesting phenomenon. Many are born from fresh perspectives and experimentation, which is great. But saving a few cpu cycles and fancier output is not enough to make me abandon a familiar, trusted and ubiquitous tool.

    However, #Mergiraf & #Difftastic bring a lot more to the table. Syntax-aware merge conflict resolution and diffing has now become essential to me.

    mergiraf.org/
    difftastic.wilfred.me.uk/

  15. @wilfredh it's very similar to #difftastic in spirit so I'm curious what you think of it :)

  16. @podfeet I've configured Git (and Magit 😉 ) to use #difftastic which is brilliant as I prefer my diffs side by side rather than line-by-line.

    difftastic.wilfred.me.uk/git.h

    Configuration is done at the global #git level rather than the client so it may "Just Work(TM)" in GitKraken (but no guarantees.

  17. I’ve been using #difftastic as my primary diff tool in #git. Plainly, side-by-side display is the best, but my monitors are too small. I don’t see enough width in this view. So I’m using inline and I’m just not getting enough out of the tool. Difftastic is great, it just may not be for me.

  18. @wilfredh Do you by chance have any knowledge if it is possible to call #DiffTastic from within #GoLang code?
    My goal is to extend #Forgejo, so we can have better PR diffs etc.

  19. Brilliant, just discovered there is an Emacs package that nicely wraps the excellent #difftastic from @wilfredh

    I can replace the custom functions I had hacked together

    pkryger/difftastic.el: Wrapper for difftastic
    github.com/pkryger/difftastic.

  20. @b0rk I like the brilliant from @wilfredh

    Has simple configuration instructions for Git at difftastic.wilfred.me.uk/git.h