logoalt Hacker News

thfurantoday at 1:51 AM2 repliesview on HN

Git is the one treating code like a text file instead of code.


Replies

UnfitFootprinttoday at 1:58 AM

I pull out difftastic when it’s all too hard for this. Diffs based off tree sitter

show 1 reply
skydhashtoday at 2:21 AM

Git store whole files. The diff and the merge algorithm works by line by default, but that's because line is a rough unit of code (statement, expression, and definition happens mostly within one line).