]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/MyFirstContribution.txt
Merge branch 'ea/blame-use-oideq'
[thirdparty/git.git] / Documentation / MyFirstContribution.txt
index d85c9b5143cec2f315c33886c497576e0c5591b8..4f85a089ef9d99e868dd1550992ac234e13266ff 100644 (file)
@@ -319,14 +319,14 @@ function body:
 ...
 
        git_config(git_default_config, NULL);
-       if (git_config_get_string_const("user.name", &cfg_name) > 0)
+       if (git_config_get_string_tmp("user.name", &cfg_name) > 0)
                printf(_("No name is found in config\n"));
        else
                printf(_("Your name: %s\n"), cfg_name);
 ----
 
 `git_config()` will grab the configuration from config files known to Git and
-apply standard precedence rules. `git_config_get_string_const()` will look up
+apply standard precedence rules. `git_config_get_string_tmp()` will look up
 a specific key ("user.name") and give you the value. There are a number of
 single-key lookup functions like this one; you can see them all (and more info
 about how to use `git_config()`) in `Documentation/technical/api-config.txt`.