]> git.ipfire.org Git - thirdparty/git.git/commit - tempfile.c
prepare_tempfile_object(): new function, extracted from create_tempfile()
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 10 Aug 2015 09:47:42 +0000 (11:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Aug 2015 19:57:14 +0000 (12:57 -0700)
commit7eba6ce5c79447579689218d8dab59a8434fd7c7
tree8b7bad1293e78afb396cc5289cee20968548d728
parent1a9d15db25487bb3fc009a88375cc206a60e0e3b
prepare_tempfile_object(): new function, extracted from create_tempfile()

This makes the next step easier.

The old code used to use "path" to set the initial length of
tempfile->filename. This was not helpful because path was usually
relative whereas the value stored to filename will be absolute. So
just initialize the length to 0.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tempfile.c