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

Re: Re: [PATCH] Improvements to git-archive tests and add_submodule_odb()

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Dec 3, 2013, 18:18 UTC
Message-ID
<20131203181807.GA4629@sandbox-ub>
In-Reply-To
<6D370472-81BB-4249-9ADA-1C906C26D88F@mac.com>
On Mon, Dec 02, 2013 at 04:14:37PM -0800, Nick Townsend wrote:
Show 10 quoted lines
> diff --git a/submodule.c b/submodule.c
> index 1905d75..1ea46be 100644
> --- a/submodule.c
> +++ b/submodule.c
> @@ -143,7 +143,7 @@ void stage_updated_gitmodules(void)
>  		die(_("staging updated .gitmodules failed"));
>  }
>  
> -static int add_submodule_odb(const char *path)
> +int add_submodule_odb(const char *path)

I am not against making add_submodule_odb() usable from outside submodule.c but I would prefer if this change goes along with some code actually using it. The reason being that when refactoring or extending you immediately know that a function is file local only with the static keyword. Without anyone using this function from outside submodule.c this fact is still true and so the code should say, IMO.

Its not a big deal to postpone removing this keyword in a later commit so I would like to drop this change from the patch. The documentation fix is fine with me.

Cheers Heiko
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 13 in “Improvements to git-archive tests and add_submodule_odb()”
  1. Improvements to git-archive tests and add_submodule_odb()Nick Townsend, Dec 3, 2013
  2. Nick TownsendDec 3, 2013
  3. Junio C HamanoDec 3, 2013
  4. Heiko VoigtDec 3, 2013
  5. Re* [PATCH] Improvements to git-archive tests and add_submodule_odb()Junio C Hamano, Dec 3, 2013
  6. Heiko VoigtDec 3, 2013
  7. Nick TownsendDec 3, 2013
  8. Eric SunshineDec 3, 2013
  9. Junio C HamanoDec 3, 2013
  10. Additional git-archive testsNick Townsend, Dec 5, 2013
  11. Junio C HamanoDec 5, 2013
  12. Nick TownsendDec 10, 2013
  13. Junio C HamanoDec 10, 2013

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.