Refactor Git::config_*Git.pm
commit52cdd1620db2747c67698440971c1ef59b2cd8d7
authorJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2011 18:53:29 +0000 (21 20:53 +0200)
committerJakub Narebski <jnareb@gmail.com>
Fri, 21 Oct 2011 18:53:29 +0000 (21 20:53 +0200)
treee1db3b7f33920a8d301907731bf00e121538c1ed
parentd9a1cc47c26effbc130bc2d516889bf0af22f3e2
Refactor Git::config_*

There is, especially with addition of Git::config_path(), much code
repetition in the Git::config_* family of subroutines.

Refactor common parts of Git::config(), Git::config_bool(),
Git::config_int() and Git::config_path() into _config_common()
helper method, reducing code duplication.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
perl/Git.pm