commit | 7eba6ce5c79447579689218d8dab59a8434fd7c7 | [log] [tgz] |
---|---|---|
author | Michael Haggerty <mhagger@alum.mit.edu> | Mon Aug 10 11:47:42 2015 +0200 |
committer | Junio C Hamano <gitster@pobox.com> | Mon Aug 10 12:57:14 2015 -0700 |
tree | 8b7bad1293e78afb396cc5289cee20968548d728 | |
parent | 1a9d15db25487bb3fc009a88375cc206a60e0e3b [diff] |
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>