Re: [PATCH v3] revision: use commit graph in get_reference()

2018-12-14 Thread Jeff King
On Thu, Dec 13, 2018 at 10:54:50AM -0800, Jonathan Tan wrote: > -static int parse_commit_in_graph_one(struct commit_graph *g, struct commit > *item) > +static struct commit *parse_commit_in_graph_one(struct repository *r, > + struct commit_graph *g, > +

Re: [PATCH v3] revision: use commit graph in get_reference()

2018-12-13 Thread Junio C Hamano
Jonathan Tan writes: > When fetching into a repository, a connectivity check is first made by > check_exist_and_connected() in builtin/fetch.c that runs: > > git rev-list --objects --stdin --not --all --quiet <(list of objects) > > If the client repository has many refs, this command can be slo

[PATCH v3] revision: use commit graph in get_reference()

2018-12-13 Thread Jonathan Tan
When fetching into a repository, a connectivity check is first made by check_exist_and_connected() in builtin/fetch.c that runs: git rev-list --objects --stdin --not --all --quiet <(list of objects) If the client repository has many refs, this command can be slow, regardless of the nature of th