Skip to content

Commit 76ecae5

Browse files
committed
docs: Improve squash command description
Add an explanation for why it's called "squash". Fixes #7661
1 parent c49a60e commit 76ecae5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/src/commands/squash.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ use crate::ui::Ui;
5151

5252
/// Move changes from a revision into another revision
5353
///
54+
/// The name "squash" comes from the idea of combining (squashing) the changes
55+
/// from multiple revisions together.
56+
///
5457
/// With the `-r` option, moves the changes from the specified revision to the
5558
/// parent revision. Fails if there are several parent revisions (i.e., the
5659
/// given revision is a merge).

0 commit comments

Comments
 (0)