Skip to content

Spell the Rename in the Form That Carries No Version Floor - #617

Merged
ptr727 merged 2 commits into
developfrom
fix/branch-rename-short-form
Aug 8, 2026
Merged

Spell the Rename in the Form That Carries No Version Floor#617
ptr727 merged 2 commits into
developfrom
fix/branch-rename-short-form

Conversation

@ptr727

@ptr727 ptr727 commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Fixes a finding Copilot raised on the promotion pull request #615, against the command block #614 added. A promotion's head is develop, so the fix lands here rather than there.

The finding

The branch rename uses long options (--move --force), but the paragraph below explicitly says the block "needs no minimum version". Using the long options may impose a newer Git requirement than the short form, so this can undermine the compatibility claim. Prefer the traditional -M form here to keep the bootstrap as version-agnostic as possible.

What the source says

Checked against git's own option tables rather than taken on faith, since the claim is about when a spelling became available:

Tag git branch option table
v1.5.4 OPT_BIT('m', NULL, ...), OPT_BIT('M', NULL, ...), OPT_BOOLEAN('f', NULL, ...)
v2.0.0 OPT_BIT('m', "move", ...), OPT_BIT('M', NULL, ...), OPT__FORCE(...)

So --move and --force did not exist in 1.5.4 and did by 2.0.0, and -M has no long equivalent in either. The finding has the direction right.

It also bounds how wrong the block was. The long forms are far older than git switch at 2.23 and git init --initial-branch at 2.28, which is what the prose named, so nothing here was going to break on a plausible host. The claim was no floor at all rather than a floor earlier than those two, and the long forms do carry one.

The change

The line reads git branch -M main, and the paragraph says the short form is deliberate rather than terse, so a later edit does not restore the long form for consistency with the rest of the block.

Verification

prose_lint.py both invocations plus sentence-split, editorconfig-checker exit 0, markdownlint-cli2 0 issues across 44 files, and STANDUP.md at 206 of 206 CRLF lines. The block's comment column is unchanged at 65.

Raised on the promotion pull request, against the block #614 added. The
line used git branch --move --force while the paragraph under it claimed
the block needs no minimum version, and the long options are newer than
the short one the claim rests on.

Checked against git's own source rather than recollection. In v1.5.4
neither long option exists, the table carrying OPT_BIT('m', NULL, ...),
OPT_BIT('M', NULL, ...) and OPT_BOOLEAN('f', NULL, ...), so -m, -M and -f
are the whole of it. By v2.0.0 the table carries OPT_BIT('m', "move",
...) and OPT__FORCE, so both long forms exist, and -M still has no long
equivalent in either.

So the finding is right about the direction and the block was claiming
more than it could carry. The long forms are far older than git switch at
2.23 and git init --initial-branch at 2.28, which the prose named, but
the claim was no floor at all rather than a floor earlier than those.

The line is -M now, and the prose says why it is written short, so a
later edit does not restore the long form for consistency with the rest
of the block.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 8, 2026 04:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the STANDUP.md branch-bootstrap instructions to use the git branch -M spelling for the initial branch rename, aligning the procedure with the stated goal of avoiding newer long-option spellings that can imply a higher minimum Git version.

Changes:

  • Replace git branch --move --force main with git branch -M main in the branch bootstrap command block.
  • Update the explanatory paragraph to explicitly justify the -M spelling as an intentional compatibility choice.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread STANDUP.md Outdated
The finding is that the paragraph said every command in the block is
spelled in the form carrying no version floor, while the block also runs
git config --local, git commit --allow-empty --message and git log
--format, none of which that claim was checked against.

One command was checked, which is the rename, and the sentence now says
only that. It reads as why -M is written short rather than as a property
of the whole block, which is what the paragraph was for.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 8, 2026 04:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@ptr727
ptr727 merged commit 8515666 into develop Aug 8, 2026
7 checks passed
@ptr727
ptr727 deleted the fix/branch-rename-short-form branch August 8, 2026 04:57
ptr727 added a commit that referenced this pull request Aug 8, 2026
…-coverage remedy (#615)

Promotes `develop` to `main`, carrying five merged pull requests.

## What is being promoted

- **[#617](#617
`8515666`, the branch rename written `-M` rather than `--move --force`,
which git gained later, checked against git's own option tables at
`v1.5.4` and `v2.0.0`.
- **[#616](#616
`08cf819`, the partial-coverage status line counting the unread files
rather than asserting there is one.
- **[#614](#614
`f39e0c0`, the branch bootstrap step in [`STANDUP.md`](./STANDUP.md).
Section 0B states the sequence that keeps the exploratory standup off
`main` and `develop`, carries the procedure's only `git init` alongside
both of section 0's identity checks, and records why the post-hoc
cleanup is unavailable. It also carries one Disproved Claims entry and
the removal of the shipped backlog cluster.
- **[#613](#613
`676a2bd`, the partial-coverage remedy in `scripts/pr_review.py` and its
two documentation mirrors, corrected to what the record supports after
measuring 4 pull requests and 7 rounds with 0 recoveries.
- **[#612](#612
`1892d6f`, a Dependabot group bump of four actions.

#616 and #617 both answer findings raised by the review **on this
promotion**. A promotion's head is `develop`, so neither could be fixed
here, and each took its own pull request into `develop` and its own
review rounds before merging.

## Review state

Each of the five was reviewed and merged on its own pull request, so
this promotion carries no unreviewed change. #614 ran 13 rounds, 12
findings accepted and 1 declined and recorded under Disproved Claims.
#616 ran 3 rounds and #617 ran 2, all findings accepted.

## Merge shape

This is a promotion, so it merges as a **merge commit** rather than a
squash, per [`GOVERNANCE.md`](./GOVERNANCE.md) "Branching Model". Its
head is `develop` itself, so it must **not** be merged with
`--delete-branch`.
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.

2 participants