Re: [PATCH v5 12/40] t0400: add 'put_raw_obj' instruction to odb-helper script

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

 



On Sun, Sep 10, 2017 at 2:12 PM, Lars Schneider
<larsxschneider@xxxxxxxxx> wrote:
>
>> On 03 Aug 2017, at 10:18, Christian Couder <christian.couder@xxxxxxxxx> wrote:
>>
>> To properly test passing objects from Git to an external odb
>> we need an odb-helper script that supports a 'put'
>> capability/instruction.
>>
>> For now we will support only sending raw blobs, so the
>> supported capability/instruction will be 'put_raw_obj'.
>
> What other kind of blobs do you imagine could we send?

As for the get instructions there could be 'put_git_obj' to send blobs
in the Git format and 'put_direct' to have the helper read directly
from the Git object store.

>> +put_raw_obj)
>> +     sha1="$2"
>> +     size="$3"
>> +     kind="$4"
>> +     writen=$(git hash-object -w -t "$kind" --stdin)
>> +     test "$writen" = "$sha1" || die "bad sha1 passed '$sha1' vs writen '$writen'"
>
> Typo? Should it be "written"?

Yeah, thanks. It's fixed in the current version.



[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