mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
object-store: move object access functions to object-store.h
This should make these functions easier to find and cache.h less overwhelming to read. In particular, this moves: - read_object_file - oid_object_info - write_object_file As a result, most of the codebase needs to #include object-store.h. In this patch the #include is only added to files that would fail to compile otherwise. It would be better to #include wherever identifiers from the header are used. That can happen later when we have better tooling for it. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
14ba97f81c
commit
cbd53a2193
@@ -2,6 +2,7 @@
|
||||
#include "config.h"
|
||||
#include "commit.h"
|
||||
#include "refs.h"
|
||||
#include "object-store.h"
|
||||
#include "pkt-line.h"
|
||||
#include "sideband.h"
|
||||
#include "run-command.h"
|
||||
|
||||
Reference in New Issue
Block a user