{"thread":{"id":"64913","subject":"[Newcomer] Question about inconsistencies in MyFirstContribution.adoc","startedAt":"2026-02-04T10:45:46Z","lastAt":"2026-02-04T11:13:53Z","messageCount":2,"participants":["soutrik das","Shreyansh Paliwal"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"535129","messageId":"CAPHqhPmDSh8WRwYt0TJUQQajM5r84m6tc6RZsiM-YzeBbxzwaw@mail.gmail.com","threadId":"64913","inReplyTo":null,"subject":"[Newcomer] Question about inconsistencies in MyFirstContribution.adoc","fromName":"soutrik das","fromEmail":"valusoutrik@gmail.com","sentAt":"2026-02-04T10:45:32Z","receivedAt":"2026-02-04T10:45:46Z","isPatch":false,"sender":{"key":"valusoutrik@gmail.com","avatar":"https://avatars.githubusercontent.com/u/56778179?v=4"},"body":"Hi everyone,\nNewcomer here, while going through the MyFirstContribution.adoc I\nnoticed some small inconsistencies , which might not be a problem to\nanyone really, but since I was doubtful I am writing here.\n\n> Add a line to #include \"config.h\" and #include\"repository.h\". Then, add the following bits to the function body: function body\n\nAnd then the tutorial uses `git_default_config` , which I am assuming\nused to be in `config.h` but now it's in `environment.h`.\n\n\nAnother small thing was\n> 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\n\nBut There is no api-config.adoc in ./Documentation/technical\n\nI couldn't find any other place where the repo_config() was explained\n, Inside the Documentation folder it has been mentioned in 4 files\n- MyFirstContribution.adoc : excluding this\n- MyFirstObjectWalk.adoc : excluding this as well\n- user-manual.adoc : used to explain what `builtin/cat-file.c` was doing\n- 2.50.0.adoc : is about a release ?\nSo I assume the thing that the tutorial refers to is currently not present ?\n\nWhile writing this mail , I checked two previous Patch mails:\nOne was about a patch by Arnav Kapoor (\nhttps://lore.kernel.org/git/pull.1972.git.git.1748005233977.gitgitgadget@gmail.com/\n) another one was probably about rejecting this patch ? And then\nFrom this ( https://lore.kernel.org/git/xmqq8qmso59i.fsf@gitster.g/#t\n) I am assuming repo-config used to be called git-config , but a\nsearch on git-config shows up too many matches , and I think i should\nstop here and ask for advice.\n\nI believe this won't count as a microproject for gsoc , but\nnonetheless, it may or may not help newcomers.\nIs this a possible patch ?\n\nSoutrik Das\n"},{"id":"535141","messageId":"20260204111343.71975-1-shreyanshpaliwalcmsmn@gmail.com","threadId":"64913","inReplyTo":"CAPHqhPmDSh8WRwYt0TJUQQajM5r84m6tc6RZsiM-YzeBbxzwaw@mail.gmail.com","subject":"Re: [Newcomer] Question about inconsistencies in MyFirstContribution.adoc","fromName":"Shreyansh Paliwal","fromEmail":"shreyanshpaliwalcmsmn@gmail.com","sentAt":"2026-02-04T11:13:04Z","receivedAt":"2026-02-04T11:13:53Z","isPatch":false,"sender":{"key":"shreyanshpaliwalcmsmn@gmail.com","avatar":"https://avatars.githubusercontent.com/u/152720574?v=4"},"body":"> Hi everyone,\n> Newcomer here, while going through the MyFirstContribution.adoc I\n> noticed some small inconsistencies , which might not be a problem to\n> anyone really, but since I was doubtful I am writing here.\n> \n> > Add a line to #include \"config.h\" and #include\"repository.h\". Then, add the following bits to the function body: function body\n> \n> And then the tutorial uses `git_default_config` , which I am assuming\n> used to be in `config.h` but now it's in `environment.h`.\n> \n\nYes this is a valid inconsistency, but this is fixed in a recent patch [1].\nIt is currently in the next branch.\n\n> \n> Another small thing was\n> > 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\n> \n> But There is no api-config.adoc in ./Documentation/technical\n> \n> I couldn't find any other place where the repo_config() was explained\n> , Inside the Documentation folder it has been mentioned in 4 files\n> - MyFirstContribution.adoc : excluding this\n> - MyFirstObjectWalk.adoc : excluding this as well\n> - user-manual.adoc : used to explain what `builtin/cat-file.c` was doing\n> - 2.50.0.adoc : is about a release ?\n> So I assume the thing that the tutorial refers to is currently not present ?\n> \n> While writing this mail , I checked two previous Patch mails:\n> One was about a patch by Arnav Kapoor (\n> https://lore.kernel.org/git/pull.1972.git.git.1748005233977.gitgitgadget@gmail.com/\n> ) another one was probably about rejecting this patch ? And then\n> From this ( https://lore.kernel.org/git/xmqq8qmso59i.fsf@gitster.g/#t\n> ) I am assuming repo-config used to be called git-config , but a\n> search on git-config shows up too many matches , and I think i should\n> stop here and ask for advice.\n> \n\nActually the documentation for repo_config was shifted to config.h,\nto make it easier, see patch [2].\n\nYou can replace 'Documentation/technical/api-config.adoc' with 'config.h'.\n\n> I believe this won't count as a microproject for gsoc , but\n> nonetheless, it may or may not help newcomers.\n> Is this a possible patch ?\n> \n\nEvery change, even if it is a small documentation change is an improvement,\nbut I would suggest apart from this doc change you can look into [3]\nfor some more microproject ideas.\n\nBest,\nShreyansh\n\n[1]- https://lore.kernel.org/git/20260112195625.391821-1-shreyanshpaliwalcmsmn@gmail.com/\n[2]- https://github.com/git/git/commit/6c96630cb0900446f7069f64d3d58bac539c0a58\n[3]- https://git.github.io/SoC-2025-Microprojects/\n"}]}