mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
![Elijah Newren](/assets/img/avatar_default.png)
The vast majority of files including object-store.h did not need dir.h nor khash.h. Split the header into two files, and let most just depend upon object-store-ll.h, while letting the two callers that need it depend on the full object-store.h. After this patch: $ git grep -h include..object-store | sort | uniq -c 2 #include "object-store.h" 129 #include "object-store-ll.h" Diff best viewed with `--color-moved`. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 lines
254 B
C
12 lines
254 B
C
#ifndef OBJECT_STORE_H
|
|
#define OBJECT_STORE_H
|
|
|
|
#include "khash.h"
|
|
#include "dir.h"
|
|
#include "object-store-ll.h"
|
|
|
|
KHASH_INIT(odb_path_map, const char * /* key: odb_path */,
|
|
struct object_directory *, 1, fspathhash, fspatheq)
|
|
|
|
#endif /* OBJECT_STORE_H */
|