Code

git-p4: Teach gitConfig method about arguments.
authorTor Arvid Lund <torarvid@gmail.com>
Tue, 15 Mar 2011 12:08:01 +0000 (13:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Mar 2011 23:06:58 +0000 (16:06 -0700)
commit99f790f22e2b2dabf00cf386339e829fe2bac6bc
tree6fa1709be8235eb6ab129b110920b3008f316052
parenta35138af75070adb32cf281a56186c9343af36a4
git-p4: Teach gitConfig method about arguments.

With this patch, it is possible to call the gitConfig method with an optional
argument string, which will be passed to the "git config" executable. For
instance:

gitConfig("core.ignorecase", "--bool")

will ensure that you get the value "true", and won't have to check the returned
value for [1, true, on, yes].

Signed-off-by: Tor Arvid Lund <torarvid@gmail.com>
Acked-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/fast-import/git-p4