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

Re: Branches and all commits

From
Andreas Ericsson <ae@op5.se>
Date
Dec 19, 2005, 19:32 UTC
Message-ID
<43A70ABD.4090003@op5.se>
In-Reply-To
<Pine.LNX.4.63.0512191257240.6812@gheavc.wnzcbav.cig>
Jon Nelson wrote:
Show 23 quoted lines
> On Mon, 19 Dec 2005, Andreas Ericsson wrote:
> 
>>>I suspect that the root cause was a 'git branch -D' I issued a while back.
>>>My question is this: if deleting a branch in that manner caused me to enter
>>>this situation, is that a bug or no?
>>
>>It's not a bug. You probably meant to do
>>
>>	$ git branch -d
>>
>>-D forces removal even if there are objects reachable only through that
>>branch. The man-page says so, but in git'ish, which isn't always intuitive
>>until you've grown familiar with the glossary.txt doc.
> 
> 
> I tried 'git branch -d' initially and it refused to delete the branch.
> So I tried 'git branch -D'.
> 
> Re-reading your last paragraph makes it clear what happened, then.
> I'll note that I ran 'git branch -D' *days* ago and I've run git-prune 
> literally a couple dozen times since then. Is it possible the objects 
> weren't removed because they were still referenced by tags?
> 

I suppose it must have been, which sort of contradicts how I thought tags worked. Lucky thing though, eh? :)

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Jon Nelson
Message 6 of 6 in “Branches and all commits”
  1. Jon NelsonDec 19, 2005
  2. Andreas EricssonDec 19, 2005
  3. Jon NelsonDec 19, 2005
  4. Andreas EricssonDec 19, 2005
  5. Jon NelsonDec 19, 2005
  6. Andreas EricssonDec 19, 2005

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.