summaryrefslogtreecommitdiffstats
path: root/sha1_name.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-10-03 22:35:55 +0200
committerJunio C Hamano <gitster@pobox.com>2016-10-10 22:52:36 +0200
commitafbba2f09ab06424d8b38908f4d76a1503f49a25 (patch)
tree345101f3da324d530ac0fe8ffc2cb9f0d164954e /sha1_name.c
parentalternates: use a separate scratch space (diff)
downloadgit-afbba2f09ab06424d8b38908f4d76a1503f49a25.tar.xz
git-afbba2f09ab06424d8b38908f4d76a1503f49a25.zip
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