author | Junio C Hamano <gitster@pobox.com> | |
Fri, 28 Oct 2011 19:34:09 +0000 (12:34 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 28 Oct 2011 19:34:09 +0000 (12:34 -0700) | ||
commit | 0e990530ae6d6c6805d31c666953541f762dd402 | |
tree | f16548df1b3b235b92c6e84a7bdb6955052dafde | tree | snapshot |
parent | cdf9db3c83618453809d6a584d1a0db19b3e189f | commit | diff |
finish_tmp_packfile(): a helper function
Factor out a small logic out of the private write_pack_file() function
in builtin/pack-objects.c.
This changes the order of finishing multi-pack generation slightly. The
code used to
- adjust shared perm of temporary packfile
- rename temporary packfile to the final name
- update mtime of the packfile under the final name
- adjust shared perm of temporary idxfile
- rename temporary idxfile to the final name
but because the helper does not want to do the mtime thing, the updated
code does that step first and then all the rest.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Factor out a small logic out of the private write_pack_file() function
in builtin/pack-objects.c.
This changes the order of finishing multi-pack generation slightly. The
code used to
- adjust shared perm of temporary packfile
- rename temporary packfile to the final name
- update mtime of the packfile under the final name
- adjust shared perm of temporary idxfile
- rename temporary idxfile to the final name
but because the helper does not want to do the mtime thing, the updated
code does that step first and then all the rest.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c | diff | blob | history | |
pack-write.c | diff | blob | history | |
pack.h | diff | blob | history |