diff options
author | Elijah Newren <newren@gmail.com> | 2023-05-16 08:33:56 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-21 22:39:53 +0200 |
commit | 08c46a499aec5b6459fb1d55ff90403c7dc2ee5a (patch) | |
tree | 8fdf8c5a68738d18a93e5c7e0b1a3bc8ef1bc06c /diffcore-break.c | |
parent | repository.h: move declaration of the_index from cache.h (diff) | |
download | git-08c46a499aec5b6459fb1d55ff90403c7dc2ee5a.tar.xz git-08c46a499aec5b6459fb1d55ff90403c7dc2ee5a.zip |
read-cache*.h: move declarations for read-cache.c functions from cache.h
For the functions defined in read-cache.c, move their declarations from
cache.h to a new header, read-cache-ll.h. Also move some related inline
functions from cache.h to read-cache.h. The purpose of the
read-cache-ll.h/read-cache.h split is that about 70% of the sites don't
need the inline functions and the extra headers they include.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-break.c')
-rw-r--r-- | diffcore-break.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/diffcore-break.c b/diffcore-break.c index 5462420bbb..4909dc088e 100644 --- a/diffcore-break.c +++ b/diffcore-break.c @@ -1,9 +1,10 @@ /* * Copyright (C) 2005 Junio C Hamano */ -#include "cache.h" +#include "git-compat-util.h" #include "diff.h" #include "diffcore.h" +#include "object.h" #include "promisor-remote.h" static int should_break(struct repository *r, |