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

Re: Testing for commit reachability through plumbing commands

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Mar 6, 2014, 19:17 UTC
Message-ID
<877g879lwp.fsf@igel.home>
In-Reply-To
<CACPiFCJLyE6XC9dY_eawe2y9gS4YsPdTbqkKAd0dcPXd5-eMCg@mail.gmail.com>
Martin Langhoff <martin.langhoff@gmail.com> writes:
Show 12 quoted lines
> I have a shell script that trims old history on a cronjob. This is for
> a repo that is used to track reports that have limited "life" (like
> logs). Old history is trimmed with grafts pointing to an empty "root"
> commit.
>
> Right now, info/graft grows unbound. I am looking for a way to trim
> unreachable grafts, I would like to be able to say something like:
>
>  git is-reachable treeish
>
> Grepping through docs and existing code hasn't helped, but perhaps I'm
> missing something obvious...
Does git fsck --unreachable --no-reflogs help?
Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Martin LanghoffNext: Martin Langhoff
Message 2 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.