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

Fix "--diff implies --no-stash" feature #1303

Merged
merged 16 commits into from Jun 28, 2023

Conversation

elias-pap
Copy link
Contributor

@elias-pap elias-pap commented Jun 25, 2023

closes #1279

Related work: #1250, #1259.

Current result

When only --diff is passed, --stash is still true. It is set at line 65, stored in options at line 105 and passed to index.js at line 127.

Expected result

When only --diff is passed, --stash should be false.

@elias-pap elias-pap changed the title Fix "--diff implies --no-stash" feature Fix "--diff implies --no-stash" feature Jun 25, 2023
Copy link
Member

@iiroj iiroj left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! It does need some changes, however.

test/e2e/no-stash.test.js Outdated Show resolved Hide resolved
test/e2e/__utils__/getLintStagedExecutor.js Show resolved Hide resolved
bin/lint-staged.js Show resolved Hide resolved
@elias-pap elias-pap requested a review from iiroj June 26, 2023 18:51
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (cf691aa) 100.00% compared to head (e9d86de) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #1303   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        26           
  Lines          740       740           
  Branches       198       198           
=========================================
  Hits           740       740           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@iiroj iiroj merged commit 66a716d into lint-staged:master Jun 28, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

How do I support verification on the server
2 participants