Skip to content

fix: reduce TODO.md merge conflicts during rebases with gitattributes#180

Closed
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-todo-md-merge-conflicts
Closed

fix: reduce TODO.md merge conflicts during rebases with gitattributes#180
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-todo-md-merge-conflicts

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 4, 2025

TODO.md creates merge conflicts on every commit during rebases because line numbers change as code moves. Since the file is auto-generated by the pre-commit hook after each commit anyway, these conflicts are unnecessary noise.

Changes

  • .gitattributes: Configure merge=union strategy for TODO.md — combines lines from both versions instead of conflicting, letting the hook regenerate the correct state
  • README.md: Document the solution in Troubleshooting for users experiencing this in their own repos

Usage

Add to your repository's .gitattributes:

TODO.md merge=union
Original prompt

This section details on the original issue you should resolve

<issue_title>Too many merge conflicts</issue_title>
<issue_description>When rebasing branches, TODO.md file creates a merge conflict for each commit, causing too many merge conflicts that often affect only the TODO.md file.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…conflicts

Co-authored-by: simone-viozzi <19674168+simone-viozzi@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix merge conflicts in TODO.md during rebase fix: reduce TODO.md merge conflicts during rebases with gitattributes Dec 4, 2025
Copilot AI requested a review from simone-viozzi December 4, 2025 17:29
@simone-viozzi
Copy link
Copy Markdown
Owner

superseed by #197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Too many merge conflicts

2 participants