[PATCH v2] remote.c: avoid O(m*n) behavior in match_push_refs

2013-07-08 Thread Brandon Casey
When pushing using a matching refspec or a pattern refspec, each ref in the local repository must be paired with a ref advertised by the remote server. This is accomplished by using the refspec to transform the name of the local ref into the name it should have in the remote repository, and then

Re: [PATCH v2] remote.c: avoid O(m*n) behavior in match_push_refs

2013-07-08 Thread Jeff King
On Mon, Jul 08, 2013 at 12:02:11AM -0700, Brandon Casey wrote: Here is the reroll with an updated commit message that hopefully provides a little more detail to justify this change. I removed the use of the search index in the send_prune block since I think that pruning many refs is an