OSDN Git Service

refs: split `ref_cache` code into separate files
authorMichael Haggerty <mhagger@alum.mit.edu>
Sun, 16 Apr 2017 06:41:31 +0000 (08:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Apr 2017 04:32:45 +0000 (21:32 -0700)
commit958f964691a250d9a7173f1c0a4c03fd9e71e2aa
treeb111a4b1ad558b60a61024b432061f63a99ad351
parent9fc3b06311f5a56b1933f046b06b3be22c17069b
refs: split `ref_cache` code into separate files

The `ref_cache` code is currently too tightly coupled to
`files-backend`, making the code harder to understand and making it
awkward for new code to use `ref_cache` (as we indeed have planned).
Start loosening that coupling by splitting `ref_cache` into a separate
module.

This commit moves code, adds declarations, and changes the visibility
of some functions, but doesn't change any code.

The modules are still too tightly coupled, but the situation will be
improved in subsequent commits.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
refs/files-backend.c
refs/ref-cache.c [new file with mode: 0644]
refs/ref-cache.h [new file with mode: 0644]