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

[PATCH v5 0/2] cleanup duplicate name_compare() functions

From
Jeremiah Mahler <jmmahler@gmail.com>
Date
Jun 20, 2014, 02:06 UTC
Message-ID
<1403230004-11034-1-git-send-email-jmmahler@gmail.com>

Version 5 of the patch series to cleanup the duplicate name_compare() functions.

  - name-hash.c had a call to cache_name_compare() but it required that
    the lengths were equal.  Since cache_name_compare() is equivalent to
    memcmp() when the lengths are equal, replace it with memcmp().
    This avoids renaming cache_name_compare() to name_compare() in a
    later patch.
  - Cleanup of log message by Junio C Humano.
Jeremiah Mahler (2):
  name-hash.c: replace cache_name_compare() with memcmp()
  cleanup duplicate name_compare() functions
 cache.h        |  2 +-
 dir.c          |  3 +--
 name-hash.c    |  2 +-
 read-cache.c   | 23 +++++++++++++----------
 tree-walk.c    | 10 ----------
 unpack-trees.c | 11 -----------
 6 files changed, 16 insertions(+), 35 deletions(-)
-- 
2.0.0.694.g5736dad
Next: Jeremiah Mahler
Message 1 of 5 in “cleanup duplicate name_compare() functions”
  1. 0/2 cleanup duplicate name_compare() functionsJeremiah Mahler, Jun 20, 2014
  2. 1/2 name-hash.c: replace cache_name_compare() with memcmp()Jeremiah Mahler, Jun 20, 2014
  3. Junio C HamanoJun 20, 2014
  4. 2/2 cleanup duplicate name_compare() functionsJeremiah Mahler, Jun 20, 2014
  5. Junio C HamanoJun 20, 2014

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.