hash.h: move some oid-related declarations from cache.h
These defines and enum are all oid-related and as such seem to make more sense being included in hash.h. Further, moving them there allows us to remove some includes of cache.h in other files. The change to line-log.h might look unrelated, but line-log.h includes diffcore.h, which previously included cache.h, which included the kitchen sink. Since this patch makes diffcore.h no longer include cache.h, the compiler complains about the 'struct string_list *' function parameter. Add a forward declaration for struct string_list to address this. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
36bf195890
commit
41227cb138
@ -1,7 +1,9 @@
|
||||
#ifndef TREE_WALK_H
|
||||
#define TREE_WALK_H
|
||||
|
||||
#include "cache.h"
|
||||
#include "hash.h"
|
||||
|
||||
struct index_state;
|
||||
|
||||
#define MAX_TRAVERSE_TREES 8
|
||||
|
||||
|
Reference in New Issue
Block a user