Subject: git remote rename spends quadratic renaming packed refs

From: Anders Kaseorg <[email-masked]>
Date: Fri, 29 Mar 2019 15:26:52 -0700

Package: git
Version: 1:2.20.1-2
Severity: minor

git remote rename takes several minutes on a remote with thousands of
packed refs, because it uses a quadratic loop that, for each ref to be
renamed, reads every ref and writes out a new copy of .git/packed-refs.
It should be possible to do this much faster.

Anders