Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fetch-pack: use OBJECT_INFO_QUICK to avoid extra prepare_packed_git call
When I run git fetch, git tries to find object for each local and remote refs. Without specifying OBJECT_INFO_QUICK, has_object_file list up entries in pack directory for each calls. This patch makes git fetch fast for the repositories having large number of refs, especially for windows because it's directory list up api is much slower than linux. Note: this patch was developed independently also by Jeff King: https://public-inbox.org/git/20171120202920.7ppcwmzkxifywtoj@sigill.intra.peff.net/ Signed-off-by: Takuto Ikuta <tikuta@chromium.org> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- Loading branch information