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

Re: [WIP] Status update on merge-recursive in C

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 27, 2006, 09:41 UTC
Message-ID
<Pine.LNX.4.63.0607271127520.29667@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7vu053o2g7.fsf@assigned-by-dhcp.cox.net>
Hi,
On Thu, 27 Jul 2006, Junio C Hamano wrote:
Show 16 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > On Sun, 9 Jul 2006, Pavel Roskin wrote:
> >
> >> - variable declarations in the middle of the code (allowed by c99 but
> >> not by ANSI C) and incomplete function declarations (no "void").  It's
> >> not C++, let's stick to the C standards.
> >...
> >> I'm attaching a patch that fixes everything except variable
> >> declarations.
> >
> > May I ask you a favour? Can you redo the patch in, say, two weeks? Thank 
> > you!
> 
> Now it's about two weeks so maybe we can apply this on top to
> clean up and prod you to continue ;-)?
*grin*

Actually, we continued a little with it, but I mainly waited what would happen to "git-read-tree --rename"...

I will send an updated patch soon. The remaining TODOs after that are:
$ grep TODO merge-recursive.c 
 * TODO: we should not have to copy the SHA1s around, but rather reference
 * TODO: check if we can just reuse the active_cache structure: it is already
 * TODO: this can be streamlined by refactoring builtin-read-tree.c
 * TODO: this can be streamlined by refactoring builtin-read-tree.c
 * TODO: this can be streamlined by refactoring builtin-write-tree.c
/* General TODO: no javaIfiCation: rename updateCache to update_cache */
 * TODO: once we no longer call external programs, we'd probably be better off
/* General TODO: get rid of all the debug messages */
                /* TODO: refactor, so that 1/2 are not needed */

So, the biggest problem I see: refactoring builtin-read-tree. I really could use some help there -- I already tried 3 times to come up with a nice abstraction for unpack_trees() which could be used as a library function.

Ciao, Dscho

Previous: Junio C Hamano
Message 6 of 6 in “[WIP] Status update on merge-recursive in C”
  1. Johannes SchindelinJul 8, 2006
  2. Pavel RoskinJul 9, 2006
  3. Junio C HamanoJul 9, 2006
  4. Johannes SchindelinJul 9, 2006
  5. Junio C HamanoJul 27, 2006
  6. Johannes SchindelinJul 27, 2006

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.