Skip to content

Update checkout command with new flags and improvements - #22

Merged
Luladjiev merged 1 commit into
mainfrom
introduce_remote_and_all_flags
Sep 11, 2025
Merged

Luladjiev merged 1 commit into
mainfrom
introduce_remote_and_all_flags

Conversation

@Luladjiev

Copy link
Copy Markdown
Owner

Enhance the checkout command by adding the --remote and --all flags for improved branching and remote handling. The update also refines error messages for a better user experience.

@Luladjiev
Luladjiev requested a review from Copilot September 11, 2025 08:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 --remote and --all flags to the checkout command 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
Luladjiev force-pushed the introduce_remote_and_all_flags branch from 748b7d9 to 6df6f0b Compare September 11, 2025 08:55
@Luladjiev
Luladjiev merged commit c72a50c into main Sep 11, 2025
1 check passed
@Luladjiev
Luladjiev deleted the introduce_remote_and_all_flags branch September 11, 2025 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants