Update checkout command with new flags and improvements - #22
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
Enhances the checkout command with --remote and --all flags to provide better branch filtering options and improves error messages throughout the codebase for better user experience.
- Added
--remoteand--allflags to thecheckoutcommand for filtering local, remote, or all branches - Updated function signatures to support the new flags throughout the checkout workflow
- Improved error handling with more consistent formatting and better messages
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/main.rs | Updated checkout command invocation to pass new remote and all flags |
| src/commands/cherry_pick.rs | Improved error message formatting and string formatting consistency |
| src/commands/checkout.rs | Added remote and all flag support with conditional branch listing logic |
| src/commands/branch.rs | Minor cleanup removing unnecessary string reference |
| src/cli.rs | Added remote and all flag definitions to the checkout command |
| Cargo.toml | Version bump from 0.8.0 to 0.8.1 |
Comments suppressed due to low confidence (2)
src/commands/checkout.rs:1
- The error message refers to 'commit' but this function is working with branches. It should say 'There was an error determining the branch' instead.
use dialoguer::theme::ColorfulTheme;
src/commands/checkout.rs:1
- The error message refers to 'commit' but this function is working with branches. It should say 'There was an error getting the branch' instead.
use dialoguer::theme::ColorfulTheme;
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…mand, improve branch handling, and enhance error messages
Luladjiev
force-pushed
the
introduce_remote_and_all_flags
branch
from
September 11, 2025 08:55
748b7d9 to
6df6f0b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhance the
checkoutcommand by adding the--remoteand--allflags for improved branching and remote handling. The update also refines error messages for a better user experience.