* garbage collection following a "git remote rm"?
@ 2018-09-15 14:31 Robert P. J. Day
2018-09-15 16:00 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2018-09-15 14:31 UTC (permalink / raw)
To: Git Mailing list
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
========================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: garbage collection following a "git remote rm"?
2018-09-15 14:31 garbage collection following a "git remote rm"? Robert P. J. Day
@ 2018-09-15 16:00 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2018-09-15 16:00 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Git Mailing list
"Robert P. J. Day" <rpjday@crashcourse.ca> writes:
> 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?
fsck gives you dangling ones (and can be told to give you
unreachable ones, too) but the list will be more like "these are
unreachable, period". It won't be like "these are the ones that
recently became unreacable, and I am not listing ones that were
unreachable already in N hours ago".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-15 16:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-15 14:31 garbage collection following a "git remote rm"? Robert P. J. Day
2018-09-15 16:00 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox