]> git.ipfire.org Git - thirdparty/git.git/commit - connect.c
connect.c: remove a few globals by using git_config callback data
authorErik Faye-Lund <kusmabite@gmail.com>
Wed, 11 Mar 2009 02:38:12 +0000 (02:38 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Mar 2009 04:42:58 +0000 (21:42 -0700)
commit15112c9599f99487211855db7a7a347f20ad9ed5
tree82f30cf82e5714daee527fccb65f6f4b5b4f3f68
parentc4994ce953b4f0fdbf80004da24ef845907d7dd8
connect.c: remove a few globals by using git_config callback data

Since ef90d6d (Provide git_config with a callback-data parameter,
2008-05-14), git_config() takes a callback data pointer that can be
used to pass extra parameters to the parsing function.  The codepath
to parse configuration variables related to git proxy predates this
facility and used a pair of file scope static variables instead.

This patch removes the need for these global variables by passing the
name of the host we are trying to access as the callback data.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c