Re: [PATCH 046/194] object-store: move replace_objects back to object-store

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stefan Beller <sbeller@xxxxxxxxxx> writes:

> @@ -32,7 +31,15 @@ struct object_store {
>  	 * Objects that should be substituted by other objects
>  	 * (see git-replace(1)).
>  	 */
> -	struct replace_objects replacements;
> +	struct replace_objects {
> +		/*
> +		 * An array of replacements.  The array is kept sorted by the original
> +		 * sha1.
> +		 */
> +		struct replace_object **items;
> +
> +		int alloc, nr;
> +	} replacements;
>  
>  	/*
>  	 * A fast, rough count of the number of objects in the repository.
> @@ -49,7 +56,7 @@ struct object_store {
>  	unsigned packed_git_initialized : 1;
>  };
>  #define OBJECT_STORE_INIT \
> -	{ NULL, MRU_INIT, ALTERNATES_INIT, REPLACE_OBJECTS_INIT, 0, 0, 0 }
> +	{ NULL, MRU_INIT, ALTERNATES_INIT, { NULL, 0, 0 }, 0, 0, 0 }

Not the primary thrust of this topic, but we may want to convert
these to use designated initializers after this series is done.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux