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

Re: What's cooking in git.git (Aug 2011, #01; Wed, 3)

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Aug 4, 2011, 07:19 UTC
Message-ID
<4E3A4815.5060309@viscovery.net>
In-Reply-To
<7vzkjq6mpn.fsf@alter.siamese.dyndns.org>
Am 8/4/2011 2:32, schrieb Junio C Hamano:
> * en/merge-recursive (2011-07-14) 50 commits
>  - fixup! Do not assume that qsort is stable
...
>  - merge-recursive: Fix sorting order and directory change assumptions
...
> The tip one should be squashed somewhere.
I suggest this one.
> I wanted to push this out in
> 'next' today, but this seems to regress a rather trivial renaming merge,
> so I had to rewind and rebuild 'next' before pushing it out.

Also, make_room_for_path() walks the entire list of files to remove on each invocation and calls unlink() on each of them, which fails after the name was re-created as a directory. IIUC, this is O(N*M) behavior where N is the number of files to remove and M is the number of directories to create, and causes unnecessary system calls. (Well, this can be fixed when the series is in next because it is not as critical as the regression that you found.)

-- Hannes
Previous: Junio C HamanoNext: Ramkumar Ramachandra
Message 2 of 3 in “What's cooking in git.git (Aug 2011, #01; Wed, 3)”
  1. Junio C HamanoAug 4, 2011
  2. Johannes SixtAug 4, 2011
  3. Ramkumar RamachandraAug 4, 2011

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.