]> git.proxmox.com Git - libgit2.git/commit
Preload attribute files that may contain macros
authorRussell Belfer <rb@github.com>
Fri, 18 Apr 2014 21:29:58 +0000 (14:29 -0700)
committerRussell Belfer <rb@github.com>
Fri, 18 Apr 2014 21:29:58 +0000 (14:29 -0700)
commite3a2a04ceff1d3657629fd6a7245d9a9fc53f24b
treefda2ccea16cfb9295ecad38ad16de9ec2eeee65e
parent50e46d6018ede64e3e4b177baa4ad8156d928fbd
Preload attribute files that may contain macros

There was a latent bug where files that use macro definitions
could be parsed before the macro definitions were loaded.  Because
of attribute file caching, preloading files that are going to be
used doesn't add a significant amount of overhead, so let's always
preload any files that could contain macros before we assemble the
actual vector of files to scan for attributes.
src/attr.c
src/attr_file.c
tests/attr/repo.c