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

Re: Removing unreachable objects in the presence of broken links?

From
Geert Uytterhoeven <geert@linux-m68k.org>
Date
Nov 11, 2012, 11:15 UTC
Message-ID
<CAMuHMdXPg-GCnkSCZmeA8HKA4hback7aUNpK5AigKKe2z+2uRA@mail.gmail.com>
In-Reply-To
<CAMuHMdU5ZNFs-_TeUE4ntzCCOp85DSOyWMrjJ=yV76MSmjfxDQ@mail.gmail.com>

On Mon, Oct 29, 2012 at 8:56 PM, Geert Uytterhoeven <geert@linux-m68k.org> wrote:

Show 11 quoted lines
> On Sun, Oct 28, 2012 at 10:34 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>> Geert Uytterhoeven <geert@linux-m68k.org> writes:
>>
>>> Is there a way to force removing unreachable objects in the presence of broken
>>> links?
>>
>> Does it help to forcibly expire the reflogs?
>
> You mean "git reflog expire --all --expire=0"?
>
> After that the reflog is empty, but "git gc" still fails.

Although "git stash list" didn't show anything, .git/refs/stash still contained one hash.

After running "git stash clear", "git gc" succeeded, and the object pointed to by .git/refs/stash before was gone.

Gr{oetje,eeting}s,
                        Geert

-- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Previous: Geert Uytterhoeven
Message 4 of 4 in “Removing unreachable objects in the presence of broken links?”
  1. Geert UytterhoevenOct 28, 2012
  2. Andreas SchwabOct 28, 2012
  3. Geert UytterhoevenOct 29, 2012
  4. Geert UytterhoevenNov 11, 2012

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.