-
Notifications
You must be signed in to change notification settings - Fork 595
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
Generator output contains duplicate lines #205
Comments
Also, the linked Generator appears to not pick up the files in Global and Community |
That is a good point! Let's explore. I made a toy repository with just 2 files:
(1)
(2)
(3)
(4)
The results are interesting. It seems like the last entry takes precedence, so This doesn't look immediately obvious, so a Generator could flatten and deduplicate entries to avoid possible confusion - and have the entry match what Note that the behavior would be easily observable. If
whereas if it is not
Similarly, with customized |
You are right. The subfolders are recent additions. The generator(s) have not been updated to take this into account. |
The Generator combines the complete content of the individual *.gitattribute files. So, there is then duplication of content in the result.
Is this an issue?
i.e. "* text=auto" ordinarily will be overridden by subsequent rules top to bottom.
What happens if there are then multiple lines of "* text=auto" throughout the file? Does this cause some form of reset of the overrides? Can this generated file actually be used, or do we first need to filter this combined file and remove all duplication?
The text was updated successfully, but these errors were encountered: