r/git • • 29d ago

Cross platform Rust app that just shows Git diffs

Post image

https://diffy.run/

Call me old fashioned, but I still like to review the code they are changing and sanity check things.

And so lately, pretty much the only reason I have VSCode open anymore is to view the diffs of what my agents are working on.

I wanted just a simple, lightweight, fast and KEYBOARD powered git diff viewer.

Suprisingly there were not many options, so I just kept using VSCode.

Eventually, I decided to just build it using GPUI (amazing) and have been pretty happy with it so far. Been using it a couple weeks and has actually replaced VScode for me most of the time.

So thought i'd share it here in case anyone else is looking for something similar.

It's open source as well, so feel free to just run it yourself or make a PR or critique my (agents) rust code: https://github.com/hitSlop/Diffy

Theres still some features I want to add but for the most part I really just want it to be a simple to use and fast git diff viewer.

If you are on Windows/Linux i'd love to know if it's working ok over there as I havn't really stress tested those.

0 Upvotes

5 comments sorted by

1

u/CartographerDue5382 28d ago

lazygit and delta already do keyboard diffs if you're fine staying in the terminal. a gpui window that's only the diff is still fair if you don't want vscode open just for the gutter. the part that actually replaces it is next/prev hunk and staging one hunk from the keyboard. if that's in, it's a tool, not just a viewer.

1

u/Jonovono 28d ago

Ya, I wanted something outside the terminal. Never really found that effective for me, not sure why. That's true, it's slightly more than just a viewer heh. My workflow is usually make a bunch of changes, review them, stage them, make more changes, review them against the previous changes and then stage those and eventually commit.

1

u/CartographerDue5382 27d ago

yea that loop is working tree vs the index, not vs HEAD. git diff is the new unstaged stuff, git diff --cached is what you already staged so you can see the next batch against it. if the terminal just doesn't stick, git gui (ships with git) or sublime merge does that split outside the tty.

1

u/Jonovono 27d ago

Yea I tried sublime merge but it’s way too ugly and bloated hence why I built mine

2

u/CartographerDue5382 27d ago

yea that tracks. sublime merge is a lot of app if you just want the split. keeping yours small is kinda the whole point then.