object-file: remove OBJECT_INFO_IGNORE_LOOSE
Its last user was removed in 97b2fa08b6 (fetch-pack: drop
custom loose object cache, 2018-11-12), so we can remove it.
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
			
			
				maint
			
			
		
							parent
							
								
									7452749a78
								
							
						
					
					
						commit
						acd6f0d973
					
				|  | @ -1575,9 +1575,6 @@ static int do_oid_object_info_extended(struct repository *r, | ||||||
| 		if (find_pack_entry(r, real, &e)) | 		if (find_pack_entry(r, real, &e)) | ||||||
| 			break; | 			break; | ||||||
|  |  | ||||||
| 		if (flags & OBJECT_INFO_IGNORE_LOOSE) |  | ||||||
| 			return -1; |  | ||||||
|  |  | ||||||
| 		/* Most likely it's a loose object. */ | 		/* Most likely it's a loose object. */ | ||||||
| 		if (!loose_object_info(r, real, oi, flags)) | 		if (!loose_object_info(r, real, oi, flags)) | ||||||
| 			return 0; | 			return 0; | ||||||
|  |  | ||||||
|  | @ -434,13 +434,11 @@ struct object_info { | ||||||
| #define OBJECT_INFO_ALLOW_UNKNOWN_TYPE 2 | #define OBJECT_INFO_ALLOW_UNKNOWN_TYPE 2 | ||||||
| /* Do not retry packed storage after checking packed and loose storage */ | /* Do not retry packed storage after checking packed and loose storage */ | ||||||
| #define OBJECT_INFO_QUICK 8 | #define OBJECT_INFO_QUICK 8 | ||||||
| /* Do not check loose object */ |  | ||||||
| #define OBJECT_INFO_IGNORE_LOOSE 16 |  | ||||||
| /* | /* | ||||||
|  * Do not attempt to fetch the object if missing (even if fetch_is_missing is |  * Do not attempt to fetch the object if missing (even if fetch_is_missing is | ||||||
|  * nonzero). |  * nonzero). | ||||||
|  */ |  */ | ||||||
| #define OBJECT_INFO_SKIP_FETCH_OBJECT 32 | #define OBJECT_INFO_SKIP_FETCH_OBJECT 16 | ||||||
| /* | /* | ||||||
|  * This is meant for bulk prefetching of missing blobs in a partial |  * This is meant for bulk prefetching of missing blobs in a partial | ||||||
|  * clone. Implies OBJECT_INFO_SKIP_FETCH_OBJECT and OBJECT_INFO_QUICK |  * clone. Implies OBJECT_INFO_SKIP_FETCH_OBJECT and OBJECT_INFO_QUICK | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Jonathan Tan
						Jonathan Tan