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

[PATCH v2] generalizing sorted-array handling

From
Yann Dirson <ydirson@altern.org>
Date
Nov 6, 2010, 21:00 UTC
Message-ID
<1289077235-3208-1-git-send-email-ydirson@altern.org>

This is a complete rewrite of the previous series, following a suggestion by Jonathan Nieder. It is much more generic than the previous one, and removes existing duplicated code in diffcore-rename.

I also had a quick look at other binary-search occurences in the code that would share the same search code. That revealed index_name_pos(): not sure it is a good idea to make it use this API - it would require changes all over the code. I still include a possibly-useful additional API for similar cases.

Next: Yann Dirson
Message 1 of 4 in “generalizing sorted-array handling”
  1. generalizing sorted-array handlingYann Dirson, Nov 6, 2010
  2. 1/3 Introduce sorted-array binary-search function.Yann Dirson, Nov 6, 2010
  3. 2/3 Convert diffcore-rename's rename_src to the new sorted-array API.Yann Dirson, Nov 6, 2010
  4. 3/3 [RFC] Add a sorted-list API for use-cases that require to get the element index.Yann Dirson, Nov 6, 2010

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.