Shorten apply examples by omitting --from auto#11
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis pull request removes the explicit Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR simplifies user-facing apply examples and the generated post-checkout hook snippet by omitting the redundant --from auto flag, relying on the CLI default behavior.
Changes:
- Update README
applyexamples and hook snippet to remove--from auto. - Update the
post-checkouthook snippet returned byhooks.PrintSnippet. - Align hook-related unit/integration tests to match the new snippet text.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| internal/hooks/hooks.go | Removes --from auto from the generated post-checkout hook snippet. |
| internal/hooks/hooks_test.go | Updates snippet assertion to match the simplified hook output. |
| internal/cli/cli_unit_test.go | Updates hook print unit test expectation for the new snippet text. |
| internal/cli/cli_integration_test.go | Updates integration test expectation for the printed hook snippet. |
| README.md | Shortens apply/hook examples to rely on the default source selection. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ## `.worktreeinclude` semantics | ||
|
|
||
| - Place `.worktreeinclude` at the source worktree root (for `--from auto`, this is typically the main worktree). | ||
| - Place `.worktreeinclude` at the source worktree root (by default, this is typically the main worktree selected by `--from auto`). |
Summary
Testing
Summary by CodeRabbit
applycommand syntax by removing the--from autoflag from examples and guidance.