diff options
author | Elijah Newren <newren@gmail.com> | 2023-04-11 09:42:02 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-04-11 17:52:11 +0200 |
commit | 65156bb7ec6443ba01edcff3691d878c7a04ede0 (patch) | |
tree | 94eb5ab30837aa68ee73459584677f9b55fc1792 /bulk-checkin.c | |
parent | cache.h: remove unnecessary includes (diff) | |
download | git-65156bb7ec6443ba01edcff3691d878c7a04ede0.tar.xz git-65156bb7ec6443ba01edcff3691d878c7a04ede0.zip |
treewide: remove double forward declaration of read_in_full
cache.h's nature of a dumping ground of includes prevented it from
being included in some compat/ files, forcing us into a workaround
of having a double forward declaration of the read_in_full() function
(see commit 14086b0a13 ("compat/pread.c: Add a forward declaration to
fix a warning", 2007-11-17)). Now that we have moved functions like
read_in_full() from cache.h to wrapper.h, and wrapper.h isn't littered
with unrelated and scary #defines, get rid of the extra forward
declaration and just have compat/pread.c include wrapper.h.
Signed-off-by: Elijah Newren <newren@gmail.com>
Acked-by: Calvin Wan <calvinwan@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bulk-checkin.c')
-rw-r--r-- | bulk-checkin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bulk-checkin.c b/bulk-checkin.c index 9192298db6..d843279715 100644 --- a/bulk-checkin.c +++ b/bulk-checkin.c @@ -17,6 +17,7 @@ #include "packfile.h" #include "object-file.h" #include "object-store.h" +#include "wrapper.h" static int odb_transaction_nesting; |