Merge main into dev to reconcile release history #4
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/reconcile-main-into-dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Merges
mainintodevto reconcile branch history. No file content changes.Why
PR #3 (
devtomain) is flagged "out-of-date with the base branch".Every
devtomainrelease PR leaves a merge commit onmainthat never travels back todev. In this repository that isd9f4e07, the merge commit from PR #1.devtherefore does not containmain's tip, and Forgejo's check looks at ancestry rather than content.The content has never differed.
git diff origin/dev origin/mainshows only PR #3's own changes, andd9f4e07introduces no files of its own.What this does
Merges
origin/maininto a branch cut fromdev, producing a merge commit and nothing else.Verified:
git diffbetween the pre-merge and post-merge commit is empty. History only.git merge-base --is-ancestor origin/main HEADreturns 0, somainbecomes an ancestor ofdevand PR #3 stops being out of date.dotnet test: 22 passed, 0 failed.I first tried this as a direct push to
dev. The pre-receive hook declined it, which is correct:devis protected and requires a pull request. Hence this branch.Alternative
PR #3 can be merged as-is. The warning is informational and the merge would succeed, since the content is already correct. This PR exists to clear the warning and stop the offset compounding with each release.
Recurrence
This will happen after every release unless the pattern changes. Two options, worth deciding separately and not urgently:
devtomainmerge. One extra PR per release, full history preserved.devtomainmerges to fast-forward or rebase in the repository settings, so no merge commit lands onmainin the first place. Cleaner, but it changes how release history reads.Assumptions
mainintodevis preferred over rewriting history on either branch. Nothing here is rebased or force-pushed.