diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-08-07 14:40:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-10 11:10:37 -0700 |
commit | cb5add58681db299d22cdccd898f9924e740034a (patch) | |
tree | 3bd7c862331cc61bff36e4476b4df2a1dd066ac9 /reflog-walk.h | |
parent | Merge branch 'maint-1.9' into maint-2.0 (diff) | |
download | tgif-cb5add58681db299d22cdccd898f9924e740034a.tar.xz |
sha1_file.c: rename move_temp_to_file() to finalize_object_file()
Since 5a688fe4 ("core.sharedrepository = 0mode" should set, not
loosen, 2009-03-25), we kept reminding ourselves:
NEEDSWORK: this should be renamed to finalize_temp_file() as
"moving" is only a part of what it does, when no patch between
master to pu changes the call sites of this function.
without doing anything about it. Let's do so.
The purpose of this function was not to move but to finalize. The
detail of the primarily implementation of finalizing was to link the
temporary file to its final name and then to unlink, which wasn't
even "moving". The alternative implementation did "move" by calling
rename(2), which is a fun tangent.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reflog-walk.h')
0 files changed, 0 insertions, 0 deletions