logoalt Hacker News

gugagoretoday at 1:30 AM2 repliesview on HN

People are jumping on it being an important file to review. You don't want to ignore the diff.

Even if that's true, you definitely do not want to attempt merge two lock files, and using the .gitattributes file to set the merge strategy is a good idea!


Replies

gwerbintoday at 6:42 PM

There are also "semantic" diff and merge tools for a variety of languages, and a few specialized for JSON. That stuff was always pretty niche, but it's becoming more popular with AI agents and not wanting to or not being able to review every merge by hand.

fragmedetoday at 3:48 AM

eg.

    config.json merge=ours