From e334fa0e4cb3d9a576726ba0cab3243b254cebb9 Mon Sep 17 00:00:00 2001 From: reddevilmidzy Date: Wed, 18 Feb 2026 14:22:51 +0900 Subject: [PATCH] Introduce @bors squash command --- src/git.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/git.md b/src/git.md index e85e6bd70..3f3530f64 100644 --- a/src/git.md +++ b/src/git.md @@ -410,6 +410,13 @@ because they only represent "fixups" and not real changes. For example, `git rebase --interactive HEAD~2` will allow you to edit the two commits only. +For pull requests in `rust-lang/rust`, you can ask [bors] to squash by commenting +`@bors squash` on the PR. +By default, [bors] combines all commit messages in the PR. +To customize the commit message, use `@bors squash [msg|message=]`. + +[bors]: https://github.com/rust-lang/bors + ### `git range-diff` After completing a rebase, and before pushing up your changes, you may want to