[Newcomer] Question about inconsistencies in MyFirstContribution.adoc
From: soutrik das <hidden>
Date: 2026-02-04 10:45:46
Hi everyone, Newcomer here, while going through the MyFirstContribution.adoc I noticed some small inconsistencies , which might not be a problem to anyone really, but since I was doubtful I am writing here.
Add a line to #include "config.h" and #include"repository.h". Then, add the following bits to the function body: function body
And then the tutorial uses `git_default_config` , which I am assuming used to be in `config.h` but now it's in `environment.h`. Another small thing was
There are a number of single-key lookup functions like this one; you can see them all (and more info about how to use repo_config()) in Documentation/technical/api-config.adoc
But There is no api-config.adoc in ./Documentation/technical I couldn't find any other place where the repo_config() was explained , Inside the Documentation folder it has been mentioned in 4 files - MyFirstContribution.adoc : excluding this - MyFirstObjectWalk.adoc : excluding this as well - user-manual.adoc : used to explain what `builtin/cat-file.c` was doing - 2.50.0.adoc : is about a release ? So I assume the thing that the tutorial refers to is currently not present ? While writing this mail , I checked two previous Patch mails: One was about a patch by Arnav Kapoor ( https://lore.kernel.org/git/pull.1972.git.git.1748005233977.gitgitgadget@gmail.com/ (local) ) another one was probably about rejecting this patch ? And then From this ( https://lore.kernel.org/git/xmqq8qmso59i.fsf@gitster.g/#t (local) ) I am assuming repo-config used to be called git-config , but a search on git-config shows up too many matches , and I think i should stop here and ask for advice. I believe this won't count as a microproject for gsoc , but nonetheless, it may or may not help newcomers. Is this a possible patch ? Soutrik Das