Skip to content

Commit e010489

Browse files
committed
Add clarification note in workspace tool instructions
Added clarification in tool instructions about squashing commits. Noted the importance of squashing commits from newest to oldest as per project status order. This change helps maintain commit history consistency when using the squash tool.
1 parent c5f64d1 commit e010489

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/but-tools/src/workspace.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,8 @@ impl Tool for SquashCommits {
11771177
<important_notes>
11781178
This tool allows you to squash a sequence of commits in a stack into a single commit with a new message.
11791179
Use this tool to clean up commit history before merging or sharing.
1180+
Always squash the commits down, meanding newer commits into their parents.
1181+
Remember that the commits listed in the project status are in reverse order, so the first commit in the list is the newest one.
11801182
</important_notes>
11811183
".to_string()
11821184
}

0 commit comments

Comments
 (0)