Thread (55 messages) 55 messages, 5 authors, 2017-09-14

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

flat view

From: Christian Couder <hidden>
Date: 2017-09-14 07:09:51

On Sun, Sep 10, 2017 at 2:12 PM, Lars Schneider
[off-list ref] wrote:
quoted
On 03 Aug 2017, at 10:18, Christian Couder [off-list ref] 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.
quoted
+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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help