• J
    rev-list: handle %x00 NUL in user format · 9130ac9f
    Jeff King 提交于
    The code paths for showing commits in "git log" and "git
    rev-list --graph" correctly handle embedded NULs by looking
    only at the resulting strbuf's length, and never treating it
    as a C string. The code path for regular rev-list, however,
    used printf("%s"), which resulted in truncated output. This
    patch uses fwrite instead, like the --graph code path.
    Signed-off-by: NJeff King <peff@peff.net>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    9130ac9f
t6006-rev-list-format.sh 7.5 KB