]> git.ipfire.org Git - thirdparty/git.git/commit - apply.h
apply.h: include missing header
authorDenton Liu <liu.denton@gmail.com>
Wed, 25 Sep 2019 08:20:53 +0000 (01:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 28 Sep 2019 05:04:16 +0000 (14:04 +0900)
commit97b989ee3a9add534d561aefca0f3b65ec26a924
treedd47ad23f0fe6c3b4c40e7e8572a7711345de479
parent4c86140027f4a0d2caaa3ab4bd8bfc5ce3c11c8a
apply.h: include missing header

When running `make hdr-check`, we got the following error messages:

apply.h:146:22: error: use of undeclared identifier 'GIT_MAX_HEXSZ'
char old_oid_prefix[GIT_MAX_HEXSZ + 1];
    ^
apply.h:147:22: error: use of undeclared identifier 'GIT_MAX_HEXSZ'
char new_oid_prefix[GIT_MAX_HEXSZ + 1];
    ^
apply.h:151:33: error: array has incomplete element type 'struct object_id'
struct object_id threeway_stage[3];
       ^
./strbuf.h:79:8: note: forward declaration of 'struct object_id'
struct object_id;
       ^
3 errors generated.
make: *** [apply.hco] Error 1

Include the missing "hash.h" header to fix these errors.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.h