You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, I usually ignore all "test.txt" files, as I often use them to add private notes. Therefore, I add the following rule to the .git/info/exclude file:
test.*
But the !*.* rule is more relevant than the previous rules. Therefore, the previous rule has no effect.
Reproduction Steps
Add a rule to the .git/info/exclude file. For example:
test.*
Include a test.txt file into the project directory and execute the git status command:
git status
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
test.txt
As you can see, the test.txt file is listed in the "Untracked files" section.
Expected Behavior
The .gitignore file should not override local ignored files.
Current Behavior
The .gitignore file overrides local ignored files.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
This gitignore rule (
!*.*
) prevents us from ignoring local files:https://github.com/vlang/v/blob/master/.gitignore#L10
For example, I usually ignore all "test.txt" files, as I often use them to add private notes. Therefore, I add the following rule to the
.git/info/exclude
file:But the
!*.*
rule is more relevant than the previous rules. Therefore, the previous rule has no effect.Reproduction Steps
Add a rule to the
.git/info/exclude
file. For example:Include a
test.txt
file into the project directory and execute thegit status
command:As you can see, the
test.txt
file is listed in the "Untracked files" section.Expected Behavior
The .gitignore file should not override local ignored files.
Current Behavior
The .gitignore file overrides local ignored files.
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.10 52c7130
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: