Does anyone have a favorite diff tool for reviewing lots of code? I’m thinking something along the lines like meld or vimdiff. I don’t really need a git client. I’m comfortable with the git CLI. I’m mainly interested in making code reviews a little easier to manage.

I’m reviewing a large code change right now and the web interface sucks. It’s slow. It doesn’t load all the files at once. Cross referencing files sucks.

I know, I know. “Code changes should be small.” I’ve already voiced that to my team, yet here we are. I’m trying to figure out a way to make this a little less miserable.

  • Kissaki@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 hours ago

    I use GitLab diffs in single-file-view mode, TortoiseGit Merge when it exceeds what GitLab can reasonably display (including block indent changes I can ignore in TortoiseGit Merge or moves I can better track), and WinMerge (previously I used KDiff) for manual copy-paste text diffing (like copying blocks from the code change diff to compare similar, categorically similar code, or code moves, etc)

  • ExtraMedicated@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    21 hours ago

    For comparing and selectively applying changes in many files, WinMerge is my tool of choice. But for resolving merge conflicts, I go with Tortise Git.

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    1 day ago

    I use emacs’s magit for git stuff (the bulk of things) and emacs’s ediff for most other things.

    Good if you know emacs, but hard to recommend using it for someone who doesn’t.

    EDIT: Oh, one exotic utility that’s useful for some rare cases, not really for interactive merging of code — wdiff for word-level diffing. Most code can reasonably be diffed on a line-by-line basis, but that’s not true for some text formats, which can have very long lines. Human, natural language in text format, is one good example.

  • 6nk06@sh.itjust.works
    link
    fedilink
    arrow-up
    13
    ·
    1 day ago

    Beyond Compare, the pro version that does 3-way merges and stuff. I tried them all and its the best for a cheap price if you use it a lot.

    • flubba86@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      16 hours ago

      My current workplace only allows whitelisted applications to run, and you must install them via the company portal. At my old workplace I used Linux with Kde Plasma, and Meld. New workplace has windows 11 only, and I was trying to find a replacement for Meld. When I started here, I noticed Beyond Compare is on the list. I’d heard of it before, but never used it. I installed it and it’s great! So happy that’s the one diffing tool they allow.

  • arran 🇦🇺@aussie.zone
    link
    fedilink
    arrow-up
    4
    ·
    1 day ago

    I like kdiff3, vimdiff, and … intellij. Kdiff3 and intellij do “directories / file structures” too but I’m not sure the level you want it. Neither are cli though.

  • MajorHavoc@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    1 day ago

    I’m mainly interested in making code reviews a little easier to manage.

    One thing I haven’t seen mentioned yet, here: All future diffs become much easier to read if the team agrees to use a very strict lint tool.

    I know, I know. “Code changes should be small.” I’ve already voiced that to my team, yet here we are.

    I understand from another Lemmy thread that the tradition is to toss the offending team members’ laptop into the nearest large body of water.