deff is an interactive Rust TUI for reviewing git diffs side-by-side with syntax highlighting and added/deleted line tinting. It supports keyboard/mouse navigation, vim-style motions, in-diff search (/, n, N), per-file reviewed toggles, and both upstream-based and explicit --base/--head comparisons. It can also include uncommitted + untracked files (--include-uncommitted) so you can review your working tree before committing.Would love to get some feedback
llbbdd|3 days ago
I admit I haven't looked super hard yet, I settled on configuring git to use delta [0] for now and I'm happy with it, but I'm curious if anyone has a workflow for reviewing/iterating on diffs in the terminal that they'd be willing to share. Also open to being told that I'm lightyears behind and that there's a better mental model for this.
[0] https://github.com/dandavison/delta/
kodomomo|3 days ago
This in conjunction with gh-dash [1] to launch a review can get you a pretty nice TUI review workflow.
[0] https://github.com/pwntester/octo.nvim
[1] https://github.com/dlvhdr/gh-dash
*Edit: I see you meant providing feedback to an agent, not a PR. Well that's what I get for reading too fast.
agavra|3 days ago
thamer|3 days ago
The two are kind of similar if I remember correctly, and both offer a lot of config options to change the style and more. I mostly use it for diffs involving long lines since it highlights changes within a line, which makes it easier to spot such edits.
I have an alias set in `~/.gitconfig` to pipe the output of `git diff` (with options) to `diff-so-fancy` with `git diffs`:
[1] https://github.com/so-fancy/diff-so-fancyflamestro|3 days ago
mckn1ght|3 days ago
jfyne|3 days ago
Once you submit it outputs to stdout and the agent reads your comments and actions them.
https://github.com/jfyne/meatcheck
coryrc|3 days ago
ushironoko|2 days ago
[deleted]
k_bx|3 days ago
- even faster, especially if you have couple thousand files and just want to press "u" for some time and see them very quickly all get staged
- has this split-view diff opened for a file
Otherwise tig is one of my favorite tools to quickly commit stuff without too many key presses but with review abilities, i have its "tig status" aliased to "t"
meain|3 days ago
flamestro|3 days ago
lf-non|3 days ago
rileymichael|3 days ago
greaakdls|3 days ago
[deleted]
ZoomZoomZoom|3 days ago
[1]: https://alexpasmantier.github.io/television/
syngrog66|3 days ago
yottamus|3 days ago
jbaber|2 days ago
[tpope's vim-fugitive]: https://github.com/tpope/vim-fugitive
I'll paste it next time I'm on that machine.
flamestro|3 days ago
metalliqaz|3 days ago
teddyh|3 days ago
flamestro|3 days ago
dingnuts|3 days ago
[deleted]
def13|2 days ago
suralind|3 days ago
raphinou|3 days ago
spartanatreyu|3 days ago
And a link to an asciicinema would help a lot too.
---
Also, I'm not sure how useful the side-by-side view is.
The second example (https://github.com/flamestro/deff/blob/main/docs/example_02....) is confusing.
The left side has lines 1365-1371 having the same code as lines 1374-1380 on the right side, yet they're not aligned with each other.
Most diff views would put padding between lines 1364-1365 on the left side so lines 1365-1371 are aligned with 1374-1380 on the right side.
esafak|3 days ago
xmorse|2 days ago
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
toastal|2 days ago
I use it with
tmarice|2 days ago
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.
agavra|3 days ago
Great work on deff, would love to brainstorm here :)
hatradiowigwam|3 days ago
flamestro|3 days ago
insane_dreamer|3 days ago
What is most useful though is a 3-panel setup, like JetBrains -- still the best git client I have worked with.
lolive|2 days ago
flamestro|3 days ago
vindin|2 days ago
tty456|3 days ago
unknown|3 days ago
[deleted]
sourcegrift|3 days ago
ivanjermakov|3 days ago
greatgib|3 days ago
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.
flamestro|3 days ago
It does not install binaries, it builds the binary by checking out the project basically. You can also do the process manually and use the tool.
pwdisswordfishy|3 days ago
jaden|3 days ago
holoduke|3 days ago
duskdozer|2 days ago
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.
zem|3 days ago
dec0dedab0de|3 days ago
...I really just like the way the Jetbrains IDEs do it, and I wish there were a TUI version that I could launch automatically from the git cli.
jamiecode|3 days ago
[deleted]
flamestro|3 days ago
rileymichael|3 days ago
riteshyadav02|2 days ago
[deleted]