Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare_tempfile_object(): new function, extracted from create_tempfi…
…le() 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>
- Loading branch information