diff options
author | Jeff King <peff@peff.net> | 2010-10-07 14:25:43 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-10-13 18:58:33 -0700 |
commit | 9130ac9fe17831445690ebbb60f09b86f96516b3 (patch) | |
tree | 36e2c5204978d544b6277526e5a31157acb818c9 /contrib/examples/git-reset.sh | |
parent | t/t3415: use && where applicable. (diff) | |
download | tgif-9130ac9fe17831445690ebbb60f09b86f96516b3.tar.xz |
rev-list: handle %x00 NUL in user format
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: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/examples/git-reset.sh')
0 files changed, 0 insertions, 0 deletions