-
-
Notifications
You must be signed in to change notification settings - Fork 452
Hide unstaged and untracked files #1552
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: b89ff4f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This reverts commit 1d0fdf9.
Tests added. |
What happens if something is added to |
Regarding your |
I'll try to spend some time on this over the weekend. |
There's a random failure that occurs on about 5% of runs. Restoring the backup stash and re-running does not result in an error. The error message seems to indicate that the stash isn't found, but I haven't yet figured out why. |
I had a workaround for this feature for a while, I wrapped I wonder if I can help to get this released.
Does this happen immediately after I've had similar issues. I've added a 1 second wait (I know not pretty) after pushing the stash as There are definitely some bugs and issues in git (depending on the version). Sometimes |
I think it's fixed. Issue was that |
Is there a way for me to test this version of |
@zaripych You can also |
@zaripych yes, lint-staged doesn't have a compilation step or anything so the code can be directly adjusted inside I haven't been able to spend time on this yet. In general it's ok but I feel it should more cleanly preserve the current implementation (in |
I've ended up using this command I've done a few rounds of testing with new parameters and this works quite well. The scenarios I tested:
I just realized this doesn't cover a few other use cases I have with Thank you @ItsNickBarry for great work. Let me know if I can help further. |
This is exactly the kind of functionality I'm looking for in order to be able to use knip! |
Sorry, I tried to rebase this to the current |
Ping @ItsNickBarry I decided to re-implement the Let's figure out the |
closes #1551, closes #1402, and probably closes #968
This branch adds
--hide-unstaged
and--hide-untracked
CLI options. I'm still adding some tests, but all of the tests were passing before I made these options default tofalse
.