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

Re: Testing for commit reachability through plumbing commands

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Mar 6, 2014, 19:29 UTC
Message-ID
<CACPiFC+hajx+z_Yq8vC88Q2DsSyD6zg0uOcjMmo7Qhj2m7r4Fg@mail.gmail.com>
In-Reply-To
<877g879lwp.fsf@igel.home>
On Thu, Mar 6, 2014 at 2:17 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Does git fsck --unreachable --no-reflogs help?
Well, my script, called regularly, does:
 - adds grafts
 - git repack -AFfd (which unpacks unreachable objects)
 - git prune --expire now

.... hmm, I guess could prune the grafts using git fsck --unreachable --no-reflogs before pruning the objects themselves.

we'll find out if it works :-)
m
-- 
 martin.langhoff@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff
Previous: Andreas SchwabNext: Jeff King
Message 3 of 4 in “Testing for commit reachability through plumbing commands”
  1. Martin LanghoffMar 6, 2014
  2. Andreas SchwabMar 6, 2014
  3. Martin LanghoffMar 6, 2014
  4. Jeff KingMar 6, 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.