Add ability to format your branch - #41699
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Address untracked file handling and preserve the selected base branch in verification remediation.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
What changed in this PR
Adds branch-scoped formatting with configurable base branches and documents the workflow.
Changes:
- Adds
-Branchand-BaseBranchoptions. - Selects files changed from the configured base branch.
- Documents branch formatting usage.
| File | Summary |
|---|---|
tools/FormatSource.ps1.in |
Implements branch-based file selection; requires handling untracked files and preserving BaseBranch in remediation commands. |
doc/docs/dev-loop.md |
Documents the new branch formatting workflow. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Blue (OneBlue)
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary of the Pull Request
Adds
-Branchto the format script to target files changed by your current branch.PR Checklist
Detailed Description of the Pull Request / Additional comments
I am always forgetting to format files before committing them, so I added a way to just target my current branch. By default it diffs against
master, but you can pass-BaseBranch branchif needed.Validation Steps Performed
cmake generated and ran it locally, found expected files.