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
The unity and visual studio templates conflict with each other in the sense that unity relies heavily on *.meta files when versioned and VS is excluding these files. Both solutions are used alongside very often, so they should be matched to work together.
You say now: This sounds like a template issue, you are right, but I'd propose an improvement to this tool.
For example:
This tool could check if the one is having a !*.meta where the other is having a *.meta (unfortunately unity's template doesn't use this notation yet)
Expected Behavior:
Either
Give info where the templates conflict, give users a chance to select which rule is active or inactive.
e.g. track *.meta or ignore *.meta
OR (even better solution) automatically see the ! listed items as more important as the exclusion, so basically sorting all the sections (all items listed under a # section) containing ! items to the bottom of the generated file (order in .gitignore matters)
so for example, this whole section should go to the end of the generated gitignore file
stapling files together, order in list will define who wins the fight over inclusion or exclusion
Reproduction Steps:
generate a file with unity and visualstudio together --> will exclude *.meta files
even if unity would include a !*.meta file, the order would decide which on wins (inc/exc)
The text was updated successfully, but these errors were encountered:
constant-flow
changed the title
Proposal: Sort '!' to the bottom of the gitignore file, so inclusions are
Proposal: Sort '!' to the bottom of the gitignore file, so inclusions are more important than exclusions
Sep 21, 2023
gitignore template of visualstudio is excluding meta file
a proposal like in this issue could make use of the inclusion phrases to make generated gitignore files more usable: toptal/gitignore.io#626
Issue
The
unity
andvisual studio
templates conflict with each other in the sense that unity relies heavily on*.meta
files when versioned and VS is excluding these files. Both solutions are used alongside very often, so they should be matched to work together.You say now: This sounds like a template issue, you are right, but I'd propose an improvement to this tool.
For example:
This tool could check if the one is having a
!*.meta
where the other is having a*.meta
(unfortunately unity's template doesn't use this notation yet)Expected Behavior:
Either
e.g.
track *.meta
orignore *.meta
!
listed items as more important as the exclusion, so basically sorting all the sections (all items listed under a#
section) containing!
items to the bottom of the generated file (order in .gitignore matters)so for example, this whole section should go to the end of the generated gitignore file
Actual Behavior:
Reproduction Steps:
unity
andvisualstudio
together --> will exclude*.meta
files!*.meta
file, the order would decide which on wins (inc/exc)The text was updated successfully, but these errors were encountered: