Live data from Hacker News

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

github.com

41–50 of 74 posts

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

#41

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.

I get the hesitation :D But the code is open and the install.sh is as minimal as it gets tbh. Still, as said, I get the hesitation. What a time to be alive. 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.

> But the code is open and the install.sh is as minimal as it gets tbh.

I bet 99.9999% of users do not review the code nor the install script.

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

#42

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.

Cowboys rule the internet.

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

#44

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.

One day folks who live inside commandlines and TUIs all day will realize that there's nothing particular about webapps or the sandboxes that they execute in that requires we build exclusively graphical runtimes around them, instead of taking advantage of the same security and distribution model for programs accessible and usable from within terminal emulator.

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

#45

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.

Is it that different from downloading and running a binary?

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

#46
post #38
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…

I had tried `delta` a few years ago but eventually went with `diff-so-fancy`[1] 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)…

You can do this with diff-highlight, which comes packaged with git. No extra packages needed.

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

#48
You definitely need a gif or apng file showing it's use in the github readme.

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.

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

#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).
Post reply on HN