summaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorLibravatar Orgad Shaneh <orgads@gmail.com>2020-09-06 20:53:55 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-09-06 14:44:41 -0700
commita462bee5d5b52c9778a9df600494fbd87f3c5fb9 (patch)
treebacb0cdb65f0489615d1cba1a47b9fad244ec4ff /diff.h
parentThirteenth batch (diff)
downloadtgif-a462bee5d5b52c9778a9df600494fbd87f3c5fb9.tar.xz
submodule: suppress checking for file name and ref ambiguity for object ids
The argv argument of collect_changed_submodules() contains only object ids (the objects references of all the refs). Notify setup_revisions() that the input is not filenames by passing assume_dashdash, so it can avoid redundant stat for each ref. Also suppress refname_ambiguity flag to avoid filesystem lookups for each object. Similar logic can be found in cat-file, pack-objects and more. This change reduces the time for git fetch in my repo from 25s to 6s. Signed-off-by: Orgad Shaneh <orgads@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
0 files changed, 0 insertions, 0 deletions