git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Archiving off old branches

From
TCTim Chase <git@tim.thechases.com>
Date
Apr 23, 2014, 18:06 UTC
Message-ID
<20140423130619.495e5e6b@bigbox.christie.dr>
In-Reply-To
<20140423175820.GE15516@google.com>
On 2014-04-23 10:58, Jonathan Nieder wrote:
Show 9 quoted lines
> Tim Chase wrote:
> >   cd .git/refs
> >   mkdir -p closed
> >   mv heads/BUG-123 closed
> 
> That breaks with packed refs (see git-pack-refs(1)), which are a
> normal thing to encounter after garbage collection.
> 
> Hope that helps,

Very much so. Alrighty...based on that alone, I'll stick to my archive script that calls update-ref and then deletes the branch.

Thanks,
-tkc
Previous: Jonathan NiederNext: Junio C Hamano
Message 4 of 5 in “Archiving off old branches”
  1. Tim ChaseApr 23, 2014
  2. Junio C HamanoApr 23, 2014
  3. Jonathan NiederApr 23, 2014
  4. Tim ChaseApr 23, 2014
  5. Junio C HamanoApr 23, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.