logoalt Hacker News

glouwbugtoday at 2:41 PM2 repliesview on HN

I’ve always wanted a git with five commands, and maybe with AST based diffing


Replies

simcop2387today at 2:45 PM

The five command part isn't really possible but you can use custom diffs for merges, git diff, etc. pretty easily. There are projects like diffsitter ( https://github.com/afnanenayet/diffsitter ) for doing more intelligent diffs like this for supported languages.

EDIT: and then an example for the merge stuff I couldn't find while typing before: https://mergiraf.org/ and HN discussion a few years ago: https://news.ycombinator.com/item?id=42093756

show 2 replies
pushcxtoday at 3:10 PM

I had wanted the same thing for a long time and jj + difftastic has satisfied me.