TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Character-Based Git Conflict Resolution

4 pointsby manxabout 3 years ago
Hello HN!<p>I was always annoyed by conflicts that can be solved automatically, but still need human intervention. E.g. two people changing the same line, but at different, non-conflicting positions. So I searched for a character based patching library and found this nice article <a href="https:&#x2F;&#x2F;neil.fraser.name&#x2F;writing&#x2F;patch&#x2F;" rel="nofollow">https:&#x2F;&#x2F;neil.fraser.name&#x2F;writing&#x2F;patch&#x2F;</a> and its corresponding library <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;diff-match-patch" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;diff-match-patch</a>.<p>Parsing git conflicts, applying patches and showing some useful diffs in the UI helps me to solve 80% of my conflicts automatically. I hope it can help you too.<p>Happy Hacking!

no comments

no comments