Skip to content

docs: adopt two-step rename+translate commit structure in xtend-to-java skill#1453

Draft
joaodinissf wants to merge 1 commit into
dsldevkit:masterfrom
joaodinissf:docs/xtend-skill-two-step-commits
Draft

docs: adopt two-step rename+translate commit structure in xtend-to-java skill#1453
joaodinissf wants to merge 1 commit into
dsldevkit:masterfrom
joaodinissf:docs/xtend-skill-two-step-commits

Conversation

@joaodinissf

Copy link
Copy Markdown
Collaborator

Summary

Replaces the xtend-to-java skill's single-commit rule with a two-step rename → translate structure (first applied in #1452):

  1. Rename commit — pure git mv of the .xtend sources to .java, content unchanged. The 100%-similarity rename edge means git log --follow and git blame permanently traverse the migration boundary (a combined delete+add only preserves history when the finished Java stays above Git's similarity threshold, which heavy rewrites don't).
  2. Translate commit — in-place rewrite to final Java. Because paths are unchanged, the PR Commits tab shows a guaranteed side-by-side Xtend-vs-Java diff per file, aligned method-by-method.
  3. Infrastructure commit — unchanged existing guidance, when a module goes fully off Xtend.

Documented trade-offs: the rename commit intentionally does not compile (one git bisect skip on master after rebase-merge; PR CI builds only the head), and the aggregate Files-changed tab is unaffected by commit structure (its old/new pairing depends only on end-state content similarity).

Touches: formatting-and-commit.md (main rewrite), validation-checklist.md rule 22, multi-file-batch.md commit section.

🤖 Generated with Claude Code

…va skill

Replace the single-commit rule with a rename -> translate structure:
a pure git-mv commit (100% similarity, so git log --follow and blame
permanently traverse the migration boundary) followed by an in-place
translate commit (guaranteed side-by-side Xtend-vs-Java diff on the PR
Commits tab), plus the existing infrastructure-cleanup commit when a
module goes fully off Xtend. Documents the accepted trade-offs: the
rename commit intentionally does not compile (one bisect-skip on master
after rebase-merge), and the aggregate Files-changed tab pairing is
unaffected by commit structure (it depends only on end-state content
similarity).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

1 participant