• Jeff King's avatar
    teach convert_to_git a "dry run" mode · 92ac3197
    Jeff King authored
    Some callers may want to know whether convert_to_git will
    actually do anything before performing the conversion
    itself (e.g., to decide whether to stream or handle blobs
    in-core). This patch lets callers specify the dry run mode
    by passing a NULL destination buffer. The return value,
    instead of indicating whether conversion happened, will
    indicate whether conversion would occur.
    For readability, we also include a wrapper function which
    makes it more obvious we are not actually performing the
    Signed-off-by: default avatarJeff King <[email protected]>
    Signed-off-by: default avatarJunio C Hamano <[email protected]>
convert.h 2.16 KB