From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, T_DKIM_INVALID shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 5B0541F404 for ; Sat, 15 Sep 2018 14:31:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728183AbeIOTuQ (ORCPT ); Sat, 15 Sep 2018 15:50:16 -0400 Received: from cpanel4.indieserve.net ([199.212.143.9]:57618 "EHLO cpanel4.indieserve.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727215AbeIOTuQ (ORCPT ); Sat, 15 Sep 2018 15:50:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crashcourse.ca; s=default; h=Content-Type:MIME-Version:Message-ID:Subject: To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ip5DK2JzX0tRQyoP2ZoJ4H8sEW8wWRvDEVgW7GlSkTU=; b=BCZGigiXM5e/EEkqUaWAIErq8E s4YOGi7e13a1Zipa62w8XleySZw6oTcFZzC87rY7bI5K+zp0PuXiG3ioT8gEbLs80oA6EPGNpIy8d 8YayNtQampoaJcLmcTnCpCJeCmtnLXXlyQvfFUYbywCToLdrXAIEk+WRw944E0lL3365vIwpzf8Dh eOWxiMVtxkv+ZP7T+dhT6wf8sGha/sPW/J4GM/PkeVTXkXzBv58oRj6S0N1WpdnoN6Abd6UtlZ8xQ tG3A2X65CNbOtFRvOgUkvyVUvqhAUxFtYoTE9cMdkD4KqUKAGcXdzeS6xwwuBixD+0tYQeHY+b5qz AEbgWptQ==; Received: from cpef81d0f814063-cmf81d0f814060.cpe.net.cable.rogers.com ([174.114.57.56]:55418 helo=localhost.localdomain) by cpanel4.indieserve.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1g1BbE-007iIr-An for git@vger.kernel.org; Sat, 15 Sep 2018 10:31:05 -0400 Date: Sat, 15 Sep 2018 10:31:02 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost.localdomain To: Git Mailing list Subject: garbage collection following a "git remote rm"? Message-ID: User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-OutGoing-Spam-Status: No, score=-0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel4.indieserve.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Get-Message-Sender-Via: cpanel4.indieserve.net: authenticated_id: rpjday+crashcourse.ca/only user confirmed/virtual account not confirmed X-Authenticated-Sender: cpanel4.indieserve.net: rpjday@crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org i've never checked before, but i assume that if i add a remote, then fetch from it and subsequently remove that remote, all of the now-unreferenced remote tracking branches in the object store will eventually be discarded by garbage collection, yes? is there a command (git fsck?) that would display exclusively objects in the object store corresponding to objects that are suddenly unreferenced due to the removal of a remote? i was just curious as it would be neat to demo that in a class. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca/dokuwiki Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================