From: Junio C Hamano Date: Tue, 13 Aug 2013 16:49:46 GMT Subject: Re: ephemeral-branches instead of detached-head? Message-ID: <7vk3jpy1qt.fsf@alter.siamese.dyndns.org> In-Reply-To: Duy Nguyen writes: > On Mon, Aug 12, 2013 at 3:37 PM, David Jeske wrote: >> Is there currently any way to say "hey, git, show me what commits are >> dangling that might be lost in the reflog?" > > How do you define dangling commits? When you do "git commit --amend", > the current commit will become dangling (in the sense that it's not > referred by any ref, but the commit exists) and those are just noise > in my opinion. "fsck lost-and-found" would be one way. It would be nice if we had something like (note: the following will _NOT_ work) git log -g HEAD --not --branches to say "walk the reflog of HEAD, but exclude anything that can be reached from the tips of branches".