We'd like to add more logic to git_hash_init(), but many callers skip it and call algop->init_fn() directly. Let's make sure we're consistently using the wrapper by adding a coccinelle rule. Besides the coccinelle file itself, this is a purely mechanical conversion based on the patch it generates. There should be no bare init_fn() calls left (except for the one in the wrapper). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
|---|---|---|
| .. | ||
| tr2_cfg.c | ||
| tr2_cfg.h | ||
| tr2_cmd_name.c | ||
| tr2_cmd_name.h | ||
| tr2_ctr.c | ||
| tr2_ctr.h | ||
| tr2_dst.c | ||
| tr2_dst.h | ||
| tr2_sid.c | ||
| tr2_sid.h | ||
| tr2_sysenv.c | ||
| tr2_sysenv.h | ||
| tr2_tbuf.c | ||
| tr2_tbuf.h | ||
| tr2_tgt.h | ||
| tr2_tgt_event.c | ||
| tr2_tgt_normal.c | ||
| tr2_tgt_perf.c | ||
| tr2_tls.c | ||
| tr2_tls.h | ||
| tr2_tmr.c | ||
| tr2_tmr.h | ||