git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Improving merge of tricky conflicts

From
BSB. Stebler <bono.stebler@gmail.com>
Date
Jul 21, 2020, 23:29 UTC
Message-ID
<a0418859-c62e-c207-a1b0-1b1aaf178527@gmail.com>
Hi,

I have been looking for a tool to display merge conflicts, that instead of showing the two versions of the conflicting section, would show the diff for that section in both conflicting commits.

The situation that would benefit a lot from this is when one branch has modified a large section of code (e.g. change in indentation), while the other branch has only a small change. In that case git will display the entire modified section twice, making it very hard to spot the difference.

Being able to see both commits diff would immediately make it clear how to apply the small change into the branch with the large edit.

I've looked around but couldn't find anything, but I'm pretty sure solutions exists. Anyone knows of an existing tool / script that does this?

Thank you, B. Stebler

Next: Johannes Sixt
Message 1 of 25 in “Improving merge of tricky conflicts”
  1. B. SteblerJul 21, 2020
  2. Johannes SixtJul 22, 2020
  3. Jeff KingJul 22, 2020
  4. Junio C HamanoJul 22, 2020
  5. Jeff KingJul 23, 2020
  6. Junio C HamanoJul 24, 2020
  7. Jeff KingJul 24, 2020
  8. Junio C HamanoJul 24, 2020
  9. Martin von ZweigbergkJan 16, 2021
  10. Jeff KingJan 21, 2021
  11. Martin von ZweigbergkJan 21, 2021
  12. Jeff KingJan 21, 2021
  13. Sergey OrganovJul 22, 2020
  14. Junio C HamanoJul 22, 2020
  15. Sergey OrganovJul 22, 2020
  16. Jeff KingJul 23, 2020
  17. Sergey OrganovJul 23, 2020
  18. Junio C HamanoJul 23, 2020
  19. Jacob KellerJul 24, 2020
  20. Junio C HamanoJul 24, 2020
  21. Sergey OrganovJul 24, 2020
  22. Junio C HamanoJul 24, 2020
  23. Sergey OrganovJul 24, 2020
  24. Junio C HamanoJul 24, 2020
  25. Bono SteblerJul 22, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.