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

Re: [PATCH] Small cache_tree_write refactor.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Sep 25, 2007, 10:38 UTC
Message-ID
<Pine.LNX.4.64.0709251135530.28395@racer.site>
In-Reply-To
<20070925082341.DF412BDBCF@madism.org>
Hi,
On Tue, 25 Sep 2007, Pierre Habouzit wrote:
Show 12 quoted lines
> --- a/cache-tree.c
> +++ b/cache-tree.c
> @@ -369,10 +369,8 @@ int cache_tree_update(struct cache_tree *it,
>  	return 0;
>  }
>  
> -static void write_one(struct cache_tree *it,
> -		       char *path,
> -		       int pathlen,
> -			   struct strbuf *buffer)
> +static void write_one(struct strbuf *buffer, struct cache_tree *it,
> +                      const char *path, int pathlen)

I don't know... is this really needed? In some other projects, the coding standard prefers the parameters in "in"..."out" order.

Ciao, Dscho

Previous: Pierre HabouzitNext: Pierre Habouzit
Message 2 of 3 in “Small cache_tree_write refactor.”
  1. Small cache_tree_write refactor.Pierre Habouzit, Sep 25, 2007
  2. Johannes SchindelinSep 25, 2007
  3. Pierre HabouzitSep 25, 2007

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.