News for hackers. Stuff that matters.
Re:Show HN: Deff – side-by-side Git diff review in your term... by yottamus on Thursday February 26, 2026 @02:13PM (#47170652)

    git difftool --tool=vimdiff
Re:Show HN: Deff – side-by-side Git diff review in your term... by flamestro on Thursday February 26, 2026 @04:12PM (#47172058)
I personally find vimdiff a bit harder to navigate for my usecase. The reason is that I am context unaware of the file often in larger projects and wanted something that allows me to check all lines in a touched file. However, I have to admit vimdiff comes quite close to what I need and is a great tool!
Re:Show HN: Deff – side-by-side Git diff review in your term... by PhilipRoman on Thursday February 26, 2026 @05:03PM (#47172571)
zr?

vim folds are fully programmable. For me a bigger issue was git calling vimdiff for each file, which I fixed with my own difftool: https://gist.github.com/PhilipRoman/60066716b5fa09fcabfa6c95...

Re:Show HN: Deff – side-by-side Git diff review in your term... by anitil on Thursday February 26, 2026 @06:52PM (#47174094)
I ran in to a couple problems when trying that script (details below), but I'm really happy that you shared it, because I had not seen ':windo diffthis' before, and that method of scripting diffs. I'll definitely be customising it!

(I found that my mac machine doesn't support the '-printf' option, and also I was attempting to run 'git bvd main' on a branch but it seems it does a recursive directory diff, so I'll use 'git diff --name-only' as the input to the awk command).

Edit: worked nicely! I haven't used tabs much in vim so is a slightly new workflow but otherwise very handy

Re:Show HN: Deff – side-by-side Git diff review in your term... by devnonymous on Friday February 27, 2026 @05:12AM (#47178768)
> For me a bigger issue was git calling vimdiff for each file,

If you configure vimdiff as the difftool in your git config, just doing a `git diff` would show you the diff for each file sequentially.

Re:Show HN: Deff – side-by-side Git diff review in your term... by metalliqaz on Thursday February 26, 2026 @02:21PM (#47170756)
but is it blazingly fast?
Re:Show HN: Deff – side-by-side Git diff review in your term... by syngrog66 on Thursday February 26, 2026 @03:06PM (#47171329)
if its not in Rust or browser-based or a "cloud" service or the result of multi-GWH of LLM "training" or a VSCode plugin or ideally all of the prior then the HN kids wont be interested :-)
Re:Show HN: Deff – side-by-side Git diff review in your term... by jbaber on Friday February 27, 2026 @06:21AM (#47179215)
I wrote a script that takes two git commits and opens all changed files in vimdiff tabs side by side. I find lots of things too hard to see in github gui. It depends one [tpope's vim-fugitive].

[tpope's vim-fugitive]: https://github.com/tpope/vim-fugitive

I'll paste it next time I'm on that machine.

Re:Show HN: Deff – side-by-side Git diff review in your term... by jbaber on Saturday February 28, 2026 @12:14AM (#47190750)
I tried to clean it up and put it [on sourcehut] and [on github].

[on sourcehut]: https://git.sr.ht/~jbaber/shadiff

[on github]: https://github.com/jbaber/shadiff