Live data from Hacker News

Show HN: Deff – Side-by-side Git diff review in your terminal

github.com

61–70 of 74 posts

Re: Show HN: Deff – Side-by-side Git diff review in your terminal

#62
post #61

kitty terminal has diff like this builtin https://sw.kovidgoyal.net/kitty/kittens/diff/ I use it with darcs diff --diff-command="kitten diff %1 %2"

Nice, I did not know about this!

I feel Kitty doesn't get enough love, it's all ghostty this, ghostty that, but Kitty has been my top performing terminal emulator for 10 years now.

Re: Show HN: Deff – Side-by-side Git diff review in your terminal

#63
Check out Critique too if you are looking for a side by side diffs TUI

It uses opentui, the same framework uses by opencode.

It can also render diffs to images, pdf and html. Very useful for agents to share diffs in remote environments like Openclaw or Kimaki

https://github.com/remorses/critique

Re: Show HN: Deff – Side-by-side Git diff review in your terminal

#64

Earlier quoted context omitted.

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!

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...

> 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 terminal

#65

we need something like this in lazygit -- which is excellent all around but lacking in visual diffing/merging. What is most useful though is a 3-panel setup, like JetBrains -- still the best git client I have worked with.

unfortunately for terminal lovers, the best .gitconfig snippet is still this:

  [diff]
    tool = intellij
  [difftool "intellij"]
    cmd = idea diff \"$LOCAL\" \"$REMOTE\"
  [merge]
    tool = intellij
  [mergetool "intellij"]
    cmd = idea merge \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
    trustExitCode = true

Re: Show HN: Deff – Side-by-side Git diff review in your terminal

#66
post #5

git difftool --tool=vimdiff

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 terminal

#67

It blows my mind that nowadays, some random tools on internet tells you to do "curl -fsSL https://.... | bash" to install some "binary" things and a lot of people will do it without hesitation. It probably explains why there is so many data leaks recently but it is like we did a 20 years jump back in time in terms of security in just a few years.

How else are you going to get your openclaw to run blazingly fast??

But seriously, I think there's a bit of overzealousness/misalignment in security lately with a disregard for usability and privacy, making people less tolerant of dealing with inconveniences.

Re: Show HN: Deff – Side-by-side Git diff review in your terminal

#68
I’m not really sure what would pull me away for a vim based solution for viewing diffs (current using codediff.nvim). For a git client in general, I use a cli/tui based solution (lazygit or plain git depending on what I need to do) but when it comes to directly manipulating text why would I throw away all the muscle memory and custom configuration of my editor for a comparatively bare bones standalone tui?

Re: Show HN: Deff – Side-by-side Git diff review in your terminal

#70
post #50
post #7

I was looking for a good TUI tool for diffs recently, but I'm not sure yet if what I want exists already (and I don't think this tool does it (yet?)). I've been moving my workflow out of VSCode as I'm using TUI-driven coding agents more often lately but one thing I miss from my VSCode/GitHub workflow is the ability to provide a comment on lines or ranges in a diff to provide targeted feedback to the agent. Most diff…

Checkout https://github.com/agavra/tuicr - it's built exactly for this purpose (reviewing code in your terminal and then adding comments and exporting it to an agent to fix).

This is really nice! I like the ability to add comments to "send it back" for another pass.
Post reply on HN