Skip to content
  • Matheus Tavares's avatar
    streaming: allow open_istream() to handle any repo · c8123e72
    Matheus Tavares authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Some callers of open_istream() at archive-tar.c and archive-zip.c are
    capable of working on arbitrary repositories but the repo struct is not
    passed down to open_istream(), which uses the_repository internally. For
    now, that's not a problem since the said callers are only being called
    with the_repository. But to be consistent and avoid future problems,
    let's allow open_istream() to receive a struct repository and use that
    instead of the_repository. This parameter addition will also be used in
    a future patch to make sha1-file.c:check_object_signature() be able to
    work on arbitrary repos.
    
    Signed-off-by: default avatarMatheus Tavares <matheus.bernardino@usp.br>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    c8123e72