diff options
author | Jeff King <peff@peff.net> | 2016-10-03 16:35:55 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-10 13:52:36 -0700 |
commit | afbba2f09ab06424d8b38908f4d76a1503f49a25 (patch) | |
tree | 345101f3da324d530ac0fe8ffc2cb9f0d164954e /sha1_name.c | |
parent | 597f9134ded20f882e2bf6bca8b0e1f03981b98d (diff) | |
download | git-afbba2f09ab06424d8b38908f4d76a1503f49a25.tar.gz git-afbba2f09ab06424d8b38908f4d76a1503f49a25.tar.xz |
fill_sha1_file: write "boring" characters
This function forms a sha1 as "xx/yyyy...", but skips over
the slot for the slash rather than writing it, leaving it to
the caller to do so. It also does not bother to put in a
trailing NUL, even though every caller would want it (we're
forming a path which by definition is not a directory, so
the only thing to do with it is feed it to a system call).
Let's make the lives of our callers easier by just writing
out the internal "/" and the NUL.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_name.c')
0 files changed, 0 insertions, 0 deletions