[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