Skip to content
  • Denton Liu's avatar
    apply.h: include missing header · 97b989ee
    Denton Liu authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarDenton Liu <liu.denton@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    97b989ee