author | Junio C Hamano <gitster@pobox.com> | |
Fri, 13 May 2011 04:36:42 +0000 (21:36 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 21 May 2011 01:38:54 +0000 (18:38 -0700) | ||
commit | fd5db55d8b6668a1ff9583a6636a4d54ad9519f2 | |
tree | 55d092858570a0c35613245e1abca049808fe822 | tree | snapshot |
parent | f8c8abc5b76ffd763b9c7c5e4fb054358e82ca28 | commit | diff |
write_entry(): separate two helper functions out
In the write-out codepath, a block of code determines what file in the
working tree to write to, and opens an output file descriptor to it.
After writing the contents out to the file, another block of code runs
fstat() on the file descriptor when appropriate.
Separate these blocks out to open_output_fd() and fstat_output()
helper functions.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In the write-out codepath, a block of code determines what file in the
working tree to write to, and opens an output file descriptor to it.
After writing the contents out to the file, another block of code runs
fstat() on the file descriptor when appropriate.
Separate these blocks out to open_output_fd() and fstat_output()
helper functions.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
entry.c | diff | blob | history |