From d052cc038270d1231a245d7ac6d60559123464d3 Mon Sep 17 00:00:00 2001 From: Matheus Tavares Date: Tue, 23 Mar 2021 11:19:32 -0300 Subject: entry: extract a header file for entry.c functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The declarations of entry.c's public functions and structures currently reside in cache.h. Although not many, they contribute to the size of cache.h and, when changed, cause the unnecessary recompilation of modules that don't really use these functions. So let's move them to a new entry.h header. While at it let's also move a comment related to checkout_entry() from entry.c to entry.h as it's more useful to describe the function there. Original-patch-by: Nguyễn Thái Ngọc Duy Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Matheus Tavares Signed-off-by: Junio C Hamano --- apply.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apply.c') diff --git a/apply.c b/apply.c index 668b16e989..ea92a2455d 100644 --- a/apply.c +++ b/apply.c @@ -21,6 +21,7 @@ #include "quote.h" #include "rerere.h" #include "apply.h" +#include "entry.h" struct gitdiff_data { struct strbuf *root; -- cgit v1.2.3