Project.pm: optimize project config file loading
commitfce9f8c05708f392a93a2670395a93d0e5d5bfd2
authorKyle J. McKay <mackyle@gmail.com>
Tue, 18 Aug 2015 04:08:51 +0000 (17 21:08 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 18 Aug 2015 04:08:51 +0000 (17 21:08 -0700)
tree02e278e34f0e1d86a7e3fe4a294062424b9ca1fc
parent841d1f47a551bb71b824b04ee22b58052459b101
Project.pm: optimize project config file loading

Instead of running `git config` once for each config file
setting to be loaded, read all the local project config
file settings with a single `git config` call and access
them from the hash generated from that output.

This reduces the number of `git config` callouts from
12 to 1 when loading a project and makes it possible
to add loading of more config options in the future
without increasing the number of `git config` callouts.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Project.pm