git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 1/1] config: move documentation to config.h

From
Emily Shaffer <emilyshaffer@google.com>
Date
Oct 22, 2019, 20:59 UTC
Message-ID
<20191022205941.GD9323@google.com>
In-Reply-To
<1a9aa33b4649e2b723a6107520c2b5ad70774714.1571727906.git.gitgitgadget@gmail.com>
On Tue, Oct 22, 2019 at 07:05:06AM +0000, Heba Waly via GitGitGadget wrote:
> From: Heba Waly <heba.waly@gmail.com>
> 
> Move the documentation from Documentation/technical/api-config.txt into
> config.h

This is still a little thin for what we usually want from commit messages. Try to imagine that five years from now, you find this commit by running `git blame` on config.h and then examining the commit which introduced all these comments with `git show <commit-id>` - what would you want to know?

Typically we want to know "why" the change was made, because the diff shows "what". We can see from the diff that you're moving comments from A to B, but if you explain why you did so (not "because my Outreachy mentor told me to" ;) but "because it is useful to see usage information next to code" or "this is best practice as described by blah blah") - I wouldn't be able to know that reasoning just from looking at your diff.

Show 12 quoted lines
> diff --git a/config.h b/config.h
> index f0ed464004..02f78ffc2b 100644
> --- a/config.h
> +++ b/config.h
> @@ -4,6 +4,23 @@
>  #include "hashmap.h"
>  #include "string-list.h"
>  
> +
> +/**
> + * The config API gives callers a way to access Git configuration files
> + * (and files which have the same syntax). See linkgit:git-config[1] for a

Ah, here's another place where the Asciidoc link isn't going to do anything anymore.

Otherwise I didn't still see anything jumping out. When the commit message is cleaned up I'm ready to add my Reviewed-by line.

 - Emily
Previous: Heba Waly via GitGitGadgetNext: Junio C Hamano
Message 10 of 16 in “config: add documentation to config.h”
  1. 0/1 config: add documentation to config.hHeba Waly via GitGitGadget, Oct 18, 2019
  2. 1/1 config: add documentation to config.hHeba Waly via GitGitGadget, Oct 18, 2019
  3. Jonathan TanOct 18, 2019
  4. Heba WalyOct 20, 2019
  5. Emily ShafferOct 18, 2019
  6. Heba WalyOct 20, 2019
  7. Emily ShafferOct 22, 2019
  8. 0/1 [Outreachy] config: move documentation to config.hHeba Waly via GitGitGadget, Oct 22, 2019
  9. 1/1 config: move documentation to config.hHeba Waly via GitGitGadget, Oct 22, 2019
  10. Emily ShafferOct 22, 2019
  11. Junio C HamanoOct 23, 2019
  12. Heba WalyOct 23, 2019
  13. 0/1 [Outreachy] config: move documentation to config.hHeba Waly via GitGitGadget, Oct 23, 2019
  14. 1/1 config: move documentation to config.hHeba Waly via GitGitGadget, Oct 23, 2019
  15. Emily ShafferOct 23, 2019
  16. Junio C HamanoOct 24, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.