• Jonathan Tan's avatar
    fetch-pack: introduce negotiator API · ec062838
    Jonathan Tan authored
    Introduce the new files fetch-negotiator.{h,c}, which contains an API
    behind which the details of negotiation are abstracted. Currently, only
    one algorithm is available: the existing one.
    
    This patch is written to be easily reviewed: static functions are
    moved verbatim from fetch-pack.c to negotiator/default.c, and it can be
    seen that the lines replaced by negotiator->X() calls are present in the
    X() functions respectively.
    Signed-off-by: default avatarJonathan Tan <jonathantanmy@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    ec062838
fetch-negotiator.c 198 Bytes