close / references/history.md

references/history.md

about 270 tokens

The text

references/history.md

about 270 tokens
  • Cursor's team kit
  • greenline
greenlineThe cleanup page is read under the rebase line alone

# History cleanup

Close reads this page when the owner asks for the change's commits to be regrouped before its pull request, and the change's record holds the owner's words for that rewrite. On this page the user is the owner, and the PR is the change's branch with its pull request.

Cursor's team kitmake-pr-easy-to-review/SKILL.md

Only rewrite history when the user asks for it or agrees to the plan.

greenlineThe plan first, and the tree read locally before the rewrite

Propose the new grouping to the owner first. Before rewriting, read the tree the change's checks ran on, `git rev-parse HEAD^{tree}`, and keep it.

Cursor's team kitmake-pr-easy-to-review/SKILL.md

Good commit groupings usually follow dependency order:

1. Schema/storage or generated API definitions.

2. Core logic.

3. Wiring and integration.

4. UI or surface behavior.

5. Tests.

After rewriting, verify content identity:

greenlineThe tree after is the tree before

`git rev-parse HEAD^{tree}` after the rewrite names the tree read before it, byte for byte.

Cursor's team kitmake-pr-easy-to-review/SKILL.md

Do not push if the tree changed unintentionally.

greenlineA changed tree stops the cleanup; a force push needs both words

A tree that changed stops the cleanup and the landing: say so, and the owner decides. A force push of a branch already pushed waits for the owner's words for both the rewrite and the push.