Code

git wrapper: introduce startup_info struct
[git.git] / git.c
diff --git a/git.c b/git.c
index f37028b3b722e6203ae8dac1ccf40a94421597d2..c4b6dbea36ac124c7663af13acc0974330ea1e39 100644 (file)
--- a/git.c
+++ b/git.c
@@ -14,6 +14,7 @@ const char git_usage_string[] =
 const char git_more_info_string[] =
        "See 'git help COMMAND' for more information on a specific command.";
 
+static struct startup_info git_startup_info;
 static int use_pager = -1;
 struct pager_config {
        const char *cmd;
@@ -489,6 +490,8 @@ int main(int argc, const char **argv)
 {
        const char *cmd;
 
+       startup_info = &git_startup_info;
+
        cmd = git_extract_argv0_path(argv[0]);
        if (!cmd)
                cmd = "git-help";