Ignore file format 1.1 vs 2.0
Hello all...
I have two .ignore files, one that looks "pre-2.0" and one that is "post-2.0".
The comment at the top of one file reads
# The value of core.global.ignore will be ignored.
and the other reads
# The value of core.ignore.recursive will be ignored.
The second one also has an uncommented line:
core.ignore.recursive=
Which format is the 2.0 format for .ignore files?
Thanks...
Travis
I have two .ignore files, one that looks "pre-2.0" and one that is "post-2.0".
The comment at the top of one file reads
# The value of core.global.ignore will be ignored.
and the other reads
# The value of core.ignore.recursive will be ignored.
The second one also has an uncommented line:
core.ignore.recursive=
Which format is the 2.0 format for .ignore files?
Thanks...
Travis
One answer
The format for the two ignore files is pretty similar. In 2.0 we allowed global ignore rules (now called "core.ignore.recursive " rather than "core.global.ignore") to appear anywhere in the loaded tree, which essentially just changes the scope. The string "core.global.ignore" is aliased to the recursive string.
Otherwise, the format is the same: a properties file format, with patterns enclosed in curly brackets ("{}") separated by white space.
Otherwise, the format is the same: a properties file format, with patterns enclosed in curly brackets ("{}") separated by white space.