Debian Bug report logs - #925993
git remote rename spends quadratic renaming packed refs

version graph

Package: git; Maintainer for git is Jonathan Nieder <[email protected]>; Source for git is src:git (PTS, buildd, popcon).

Reported by: Anders Kaseorg <[email protected]>

Date: Fri, 29 Mar 2019 22:39:01 UTC

Severity: minor

Found in version git/1:2.20.1-2

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Gerrit Pape <[email protected]>:
Bug#925993; Package git. (Fri, 29 Mar 2019 22:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to Anders Kaseorg <[email protected]>:
New Bug report received and forwarded. Copy sent to Gerrit Pape <[email protected]>. (Fri, 29 Mar 2019 22:39:03 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Anders Kaseorg <[email protected]>
To: [email protected]
Subject: git remote rename spends quadratic renaming packed refs
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



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 15:59:38 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.