git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2] cleanup duplicate name_compare() functions
@ 2014-06-20  2:06 Jeremiah Mahler
  2014-06-20  2:06 ` [PATCH v5 1/2] name-hash.c: replace cache_name_compare() with memcmp() Jeremiah Mahler
  2014-06-20  2:06 ` [PATCH v5 2/2] cleanup duplicate name_compare() functions Jeremiah Mahler
  0 siblings, 2 replies; 5+ messages in thread
From: Jeremiah Mahler @ 2014-06-20  2:06 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Jonathan Nieder, git, Jeremiah Mahler

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-25 21:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-20  2:06 [PATCH v5 0/2] cleanup duplicate name_compare() functions Jeremiah Mahler
2014-06-20  2:06 ` [PATCH v5 1/2] name-hash.c: replace cache_name_compare() with memcmp() Jeremiah Mahler
2014-06-20 17:10   ` Junio C Hamano
2014-06-20  2:06 ` [PATCH v5 2/2] cleanup duplicate name_compare() functions Jeremiah Mahler
2014-06-20 17:15   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).