The mechanism to decide which blobs should be sent to which external object database will be very simple for now. If the external odb helper support any "put_*" instruction all the new blobs will be sent to it. Signed-off-by: Christian Couder <chriscool@xxxxxxxxxxxxx> --- external-odb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/external-odb.c b/external-odb.c index 806dc8e699..de2ae70db1 100644 --- a/external-odb.c +++ b/external-odb.c @@ -210,6 +210,10 @@ int external_odb_put_object(const void *buf, size_t len, external_odb_init(); + /* For now accept only blobs */ + if (strcmp(type, "blob")) + return 1; + for (o = helpers; o; o = o->next) { int r = odb_helper_put_object(o, buf, len, type, sha1); if (r <= 0) -- 2.17.0.rc0.37.g8f476fabe9