docs: mention branch checkout side effect

This commit is contained in:
xfocus3 authored and David Peter committed 2026-10-05 11:53:07 +02:00
1 parent e1fa3ace8d
commit c974f9b4d9
1 file changed
+4 -3
+4 -3
View File
@@ -98,9 +98,10 @@ hyperfine \
'rails runner true'
```
Make sure your working tree is clean before switching branches. If you want to benchmark
uncommitted changes, consider using `git worktree` and benchmarking the same command in each
worktree instead.
Make sure your working tree is clean before switching branches. Because this `--setup` command
changes the checkout, the repository will remain on the last branch from `--parameter-list`
after the benchmark finishes. If you want to benchmark uncommitted changes, consider using
`git worktree` and benchmarking the same command in each worktree instead.
### Intermediate shell