-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
check-ignore: exit --stdin silently on empty string [qa] #4361
Comments
Cc @karajan1001 WDYT? |
And as an extra (from #4323 (review)), the |
@jorgeorpinel So the question is do we need another exiting method besides "cannot use both |
I see. Well, Git has notoriously poor interface and docs, so not a role model on every single detail 🙂 BTW,
I think my suggestion to use Thanks! |
I'm sorry, I'm not quite understanding here. Only |
fix iterative#4361 1. Remove error message when input a empty string 2. Remove error message when read input from stream 2. Remove error message when interrupt by `CTRL-C`
Ohhh good point sorry, I was confused about that. My idea was to end the interactive mode on empty string then. I see you've already done that in #4368, thanks @karajan1001 ! |
When you use check-ignore in interactive mode, empty strings produce an error and exit. However empty strings are accepted (never match) without
--stdin
:So I propose that a) empty strings in --stdin interactive mode simply cause the tool to exit back to the shell prompt and/or b) empty strings sent as
targets
should just be ignored? (exit tool silently)The text was updated successfully, but these errors were encountered: