Skip to content

Fix: early out with non file arguments in checkout file #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025

Conversation

sandr01d
Copy link
Collaborator

Check list

  • I have performed a self-review of my code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation

Description

Removes the end of option marker (--) passed to _forgit_checkout_file when returning early in _forgit_checkout_file. This allows non-file arguments to be used in this case.
This is a follow-up to #451

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Breaking change
  • Documentation change

Test environment

  • Shell
    • bash
    • zsh
    • fish
  • OS
    • Linux
    • Mac OS X
    • Windows
    • Others:

@sandr01d sandr01d self-assigned this Jul 15, 2025
@sandr01d sandr01d force-pushed the checkout-file-early-out-args branch from 103db3a to 19bd423 Compare July 15, 2025 19:12
@sandr01d sandr01d merged commit 8285d2e into wfxr:main Jul 16, 2025
3 checks passed
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.

3 participants