Feature/ignore by file extension#4390
Open
PhatDave wants to merge 2 commits intojesseduffield:masterfrom
Open
Conversation
Author
|
Actually there are a few issues that I did not realize at first And the other issue is related to the first but applies to files that are staged (so not untracked and not "new" or already in a commit) |
added 2 commits
March 26, 2025 11:05
That works exactly like the "ignore" command But instead of ignoring a file it ignores *.<extension> of the selected file
979450a to
c86bb5b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am surprised (and still in disbelief) that this has not already been implemented
Am I the only one ignoring by wildcard?
My bad if this is actually already a feature, I could not find it
Works exactly like the "ignore" command
But instead of ignoring a file it ignores *. of the selected file
Given a repository with 2 files (changes) - "foo.log" and "bar.log"
Hitting "i" on a "foo.log" would untrack/delete "foo.log" and append "foo.log" to .gitignore
Hitting "I" on a "foo.log" will untrack/delete all .log files - in this case that would be "foo.log" and "bar.log" - and append "*.log" to .gitignore
That's all it does
I did not want to machine translate for any languages so only english.go is updated (ie. we're not very internationalised)
I did not find any tests to ctrl-c ctrl-v (looking for "i"gnore file tests) so none were added
I also could not find any relevant docs to update, I hope to get help with that
PR Description
Please check if the PR fulfills these requirements
go generate ./...)