diff options
author | Orgad Shaneh <orgads@gmail.com> | 2020-09-06 20:53:55 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-06 14:44:41 -0700 |
commit | a462bee5d5b52c9778a9df600494fbd87f3c5fb9 (patch) | |
tree | bacb0cdb65f0489615d1cba1a47b9fad244ec4ff /builtin/mktree.c | |
parent | Thirteenth batch (diff) | |
download | tgif-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 'builtin/mktree.c')
0 files changed, 0 insertions, 0 deletions