git/trace2
Elijah Newren d1cbe1e6d8 hash-ll.h: split out of hash.h to remove dependency on repository.h
hash.h depends upon and includes repository.h, due to the definition and
use of the_hash_algo (defined as the_repository->hash_algo).  However,
most headers trying to include hash.h are only interested in the layout
of the structs like object_id.  Move the parts of hash.h that do not
depend upon repository.h into a new file hash-ll.h (the "low level"
parts of hash.h), and adjust other files to use this new header where
the convenience inline functions aren't needed.

This allows hash.h and object.h to be fairly small, minimal headers.  It
also exposes a lot of hidden dependencies on both path.h (which was
brought in by repository.h) and repository.h (which was previously
implicitly brought in by object.h), so also adjust other files to be
more explicit about what they depend upon.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-04-24 12:47:32 -07:00
..
tr2_cfg.c treewide: remove unnecessary includes of cache.h 2023-03-21 10:56:53 -07:00
tr2_cfg.h
tr2_cmd_name.c treewide: remove unnecessary includes of cache.h 2023-03-21 10:56:53 -07:00
tr2_cmd_name.h
tr2_ctr.c treewide: remove unnecessary cache.h includes in source files 2023-02-23 17:25:28 -08:00
tr2_ctr.h trace2: add global counter mechanism 2022-10-24 12:45:26 -07:00
tr2_dst.c treewide: remove unnecessary includes of cache.h 2023-03-21 10:56:53 -07:00
tr2_dst.h
tr2_sid.c treewide: remove unnecessary includes of cache.h 2023-03-21 10:56:53 -07:00
tr2_sid.h
tr2_sysenv.c dir.h: refactor to no longer need to include cache.h 2023-02-23 17:25:29 -08:00
tr2_sysenv.h
tr2_tbuf.c treewide: remove unnecessary cache.h includes in source files 2023-02-23 17:25:28 -08:00
tr2_tbuf.h
tr2_tgt.h trace2: add global counter mechanism 2022-10-24 12:45:26 -07:00
tr2_tgt_event.c hash-ll.h: split out of hash.h to remove dependency on repository.h 2023-04-24 12:47:32 -07:00
tr2_tgt_normal.c hash-ll.h: split out of hash.h to remove dependency on repository.h 2023-04-24 12:47:32 -07:00
tr2_tgt_perf.c hash-ll.h: split out of hash.h to remove dependency on repository.h 2023-04-24 12:47:32 -07:00
tr2_tls.c alloc.h: move ALLOC_GROW() functions from cache.h 2023-02-23 17:25:28 -08:00
tr2_tls.h trace2: add global counter mechanism 2022-10-24 12:45:26 -07:00
tr2_tmr.c treewide: remove unnecessary cache.h includes in source files 2023-02-23 17:25:28 -08:00
tr2_tmr.h trace2: add stopwatch timers 2022-10-24 12:45:26 -07:00