summaryrefslogtreecommitdiff
path: root/pack-bitmap.h
diff options
context:
space:
mode:
authorLibravatar Elijah Newren <newren@gmail.com>2021-03-13 22:22:05 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-03-18 14:32:56 -0700
commit0491d39297132c48e36c2f73cb0dfe7e22b3c52f (patch)
tree98edf98579bb9aabceb97481ab1b404efcf86210 /pack-bitmap.h
parentdiffcore-rename: only compute dir_rename_count for relevant directories (diff)
downloadtgif-0491d39297132c48e36c2f73cb0dfe7e22b3c52f.tar.xz
diffcore-rename: check if we have enough renames for directories early on
As noted in the past few commits, if we can determine that a directory already has enough renames to determine how directory rename detection will be decided for that directory, then we can mark that directory as no longer needing any more renames detected for files underneath it. For such directories, we change the value in the dirs_removed map from RELEVANT_TO_SELF to RELEVANT_FOR_ANCESTOR. A subsequent patch will use this information while iterating over the remaining potential rename sources to mark ones that were only location_relevant as unneeded if no containing directory is still marked as RELEVANT_TO_SELF. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-bitmap.h')
0 files changed, 0 insertions, 0 deletions