diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2018-06-06 13:47:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-14 11:31:24 -0700 |
commit | 34c2903456046e194b3c3cde23e108a788571ffd (patch) | |
tree | f1fd5c821b287ca7305b0a28de45a0ad18cfd536 /revision.h | |
parent | Git 2.18-rc2 (diff) | |
download | tgif-34c2903456046e194b3c3cde23e108a788571ffd.tar.xz |
fetch-pack: split up everything_local()
The function everything_local(), despite its name, also (1) marks
commits as COMPLETE and COMMON_REF and (2) invokes filter_refs() as
important side effects. Extract (1) into its own function
(mark_complete_and_common_ref()) and remove
(2).
The restoring of save_commit_buffer, which was introduced in a1c6d7c1a7
("fetch-pack: restore save_commit_buffer after use", 2017-12-08), is a
concern of the parse_object() call in mark_complete_and_common_ref(), so
it has been moved from the end of everything_local() to the end of
mark_complete_and_common_ref().
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.h')
0 files changed, 0 insertions, 0 deletions