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

Re: [PATCH] Small cache_tree_write refactor.

From
Pierre Habouzit <madcoder@debian.org>
Date
Sep 25, 2007, 11:40 UTC
Message-ID
<20070925114001.GB8308@artemis.corp>
In-Reply-To
<Pine.LNX.4.64.0709251135530.28395@racer.site>
On Tue, Sep 25, 2007 at 10:38:16AM +0000, Johannes Schindelin wrote:
Show 19 quoted lines
> Hi,
> 
> On Tue, 25 Sep 2007, Pierre Habouzit wrote:
> 
> > --- 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.
  Well, this is thought in an OO way, buffer would be the "this". This
method could be named strbuf_addtree(...) hence I felt that having the
buffer as a first argument to be right.
  But I don't care that much about that.
-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org
Previous: Johannes Schindelin
Message 3 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.