Re: [PATCH v5 8/9] pack-objects: introduce '--stdin-packs=follow'

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

 



Taylor Blau <me@xxxxxxxxxxxx> writes:

> +	enum stdin_packs_mode mode = *(enum stdin_packs_mode *)data;
> +	if (mode == STDIN_PACKS_MODE_FOLLOW) {
> +		if (object->type == OBJ_BLOB && !has_object(the_repository,
> +							    &object->oid, 0))
> +			return;

Sorry for making a comment that is not about the contents of the
patch, but since we were discussing clang-format elsewhere, and this
happens to be a case the tool gets it right, the above should read
more like:

		if (object->type == OBJ_BLOB &&
		    !has_object(the_repository, &object->oid, 0))
			return;

cf. Documentation/CodingGuidelines

 - When splitting a long logical line, with everything else being
   equal, it is preferable to split after the operator at higher
   level in the parse tree.






[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