Merge branch 'jk/cocci'
commit769af0fd9ea0b4de172b51ae4b9ea41b57c02fd3
authorJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2018 20:53:57 +0000 (17 13:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2018 20:53:57 +0000 (17 13:53 -0700)
tree524c7d9759fb9deae7b82581aa28fc8bc38265f6
parentd88949d86eddb62acbc85c16c97587db043d05b1
parentd9f62dfa0ddc31bdad93054acca9fd42ca781f7f
Merge branch 'jk/cocci'

spatch transformation to replace boolean uses of !hashcmp() to
newly introduced oideq() is added, and applied, to regain
performance lost due to support of multiple hash algorithms.

* jk/cocci:
  show_dirstat: simplify same-content check
  read-cache: use oideq() in ce_compare functions
  convert hashmap comparison functions to oideq()
  convert "hashcmp() != 0" to "!hasheq()"
  convert "oidcmp() != 0" to "!oideq()"
  convert "hashcmp() == 0" to hasheq()
  convert "oidcmp() == 0" to oideq()
  introduce hasheq() and oideq()
  coccinelle: use <...> for function exclusion
32 files changed:
bisect.c
builtin/am.c
builtin/checkout.c
builtin/fetch.c
builtin/fmt-merge-msg.c
builtin/log.c
builtin/merge.c
builtin/pack-objects.c
builtin/pull.c
builtin/receive-pack.c
builtin/remote.c
cache-tree.c
cache.h
commit-graph.c
commit.c
diff-lib.c
diff.c
dir.c
fast-import.c
http-push.c
log-tree.c
merge-recursive.c
notes-merge.c
pack-objects.c
packfile.c
read-cache.c
remote.c
revision.c
sequencer.c
sha1-name.c
submodule.c
unpack-trees.c