chiark / gitweb /
Load the whole config at once and cache it for future use
authorSamuel Tardieu <sam@rfc1149.net>
Fri, 22 May 2009 20:38:11 +0000 (22:38 +0200)
committerKarl Hasselström <kha@treskal.com>
Fri, 22 May 2009 20:38:11 +0000 (22:38 +0200)
commita264e49b1c1c62950f442df07863d3cf92db8684
tree8272ba5c564eb17b86000bf5a27829d58e8d722a
parentf4893b17323f7d6a62790f38e4929f9ea75e42e4
Load the whole config at once and cache it for future use

Instead of loading the config values one at at time when we need then,
read and parse the configuration files all at once using

  git config --list --null

and cache the result. This should be a performance win.

Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/config.py