Skip to content
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

Make glcean parameters consistent with other functions #317

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

sandr01d
Copy link
Collaborator

@sandr01d sandr01d commented Jul 1, 2023

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

Most functions try to pass parameters directly to git and exit early when successfull. _forgit_clean is an exception to this, as it currently only uses the arguments to determine the target files. Our completions use _git-clean, which completes untracked files, but gclean -f FILE currently opens the file picker.
I've added a line to allow an early out for _forgit_clean.

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:

Copy link
Owner

@wfxr wfxr left a comment

Choose a reason for hiding this comment

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

LGTM

@sandr01d sandr01d merged commit 8547b55 into master Jul 6, 2023
7 checks passed
@sandr01d sandr01d deleted the gclean-parameters branch July 6, 2023 18:13
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.

4 participants