Skip to content

Revert "add a .clang-format file (#9154)"#9172

Merged
thebentern merged 1 commit into
meshtastic:developfrom
Jorropo:fix-clang-format
Jan 4, 2026
Merged

Revert "add a .clang-format file (#9154)"#9172
thebentern merged 1 commit into
meshtastic:developfrom
Jorropo:fix-clang-format

Conversation

@Jorropo

@Jorropo Jorropo commented Jan 4, 2026

Copy link
Copy Markdown
Member

I thought git would be smart enough to understand all the whitespace changes but even with all the flags I know to make it ignore theses it still blows up if there are identical changes on both sides.
I have a solution but it require creating a new commit at the merge base for each conflicting PR and merging it into develop.
I don't think blowing up all PRs is worth for now, maybe if we can coordinate this for V3 let's say.

This reverts commit 0d11331.

@Jorropo Jorropo changed the title reformat lines to 150 columns Revert "add a .clang-format file (#9154)" Jan 4, 2026
I thought git would be smart enough to understand all the whitespace changes but even with all the flags I know to make it ignore theses it still blows up if there are identical changes on both sides.

I have a solution but it require creating a new commit at the merge base for each conflicting PR and merging it into develop.

I don't think blowing up all PRs is worth for now, maybe if we can coordinate this for V3 let's say.

This reverts commit 0d11331.
@Jorropo

Jorropo commented Jan 4, 2026

Copy link
Copy Markdown
Member Author

Actually I have let an other idea.

@Jorropo Jorropo marked this pull request as draft January 4, 2026 04:46
@Jorropo Jorropo marked this pull request as ready for review January 4, 2026 05:26
@Jorropo

Jorropo commented Jan 4, 2026

Copy link
Copy Markdown
Member Author

Well it's much better but still more work than I thought.

@Jorropo

Jorropo commented Jan 4, 2026

Copy link
Copy Markdown
Member Author

Basically git merge 0d11331d185a60adf84e64ec98642baf6a15a95a~1 && git show 0d11331d185a60adf84e64ec98642baf6a15a95a:.clang-format > .clang-format && trunk fmt -a && git add . && git commit -m "add .clang-format on local branch" && git merge 0d11331d185a60adf84e64ec98642baf6a15a95a but the second merge doesn't automatically succeeds.

@thebentern thebentern added the enhancement New feature or request label Jan 4, 2026
@thebentern thebentern merged commit beb268f into meshtastic:develop Jan 4, 2026
75 of 76 checks passed
jeek pushed a commit to jeek/Meshtastic-Exploiteers-Hacker-Pager that referenced this pull request Jun 30, 2026
I thought git would be smart enough to understand all the whitespace changes but even with all the flags I know to make it ignore theses it still blows up if there are identical changes on both sides.

I have a solution but it require creating a new commit at the merge base for each conflicting PR and merging it into develop.

I don't think blowing up all PRs is worth for now, maybe if we can coordinate this for V3 let's say.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants