Re: Archiving off old branches

2014-04-23 Thread Junio C Hamano
Tim Chase g...@tim.thechases.com writes: Reading up on git help update-ref, it states that it updates the name safely. I think that description is well intended but is misleading. There are many potential sources of risk, and the safely refers to protection against a particular kind of risk:

Re: Archiving off old branches

2014-04-23 Thread Jonathan Nieder
Hi, 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, Jonathan -- To unsubscribe from this list: send the line unsubscribe git in

Re: Archiving off old branches

2014-04-23 Thread Tim Chase
On 2014-04-23 10:58, Jonathan Nieder wrote: 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.

Re: Archiving off old branches

2014-04-23 Thread Junio C Hamano
Jonathan Nieder jrnie...@gmail.com writes: 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. Specifically, - if BUG-123 branch was placed in