Thread (1 message) 1 message, 1 author, 2016-06-15

Re: ephemeral-branches instead of detached-head?

From: Duy Nguyen <hidden>
Date: 2016-06-15 22:58:24

On Tue, Aug 13, 2013 at 9:44 PM, David Jeske [off-list ref] wrote:
On Aug 12, 2013 11:06 PM, "Duy Nguyen" [off-list ref] wrote:
quoted
On Mon, Aug 12, 2013 at 3:37 PM, David Jeske [off-list ref] wrote:
quoted
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?
Any commit which I did not explicitly do something with. (Merge, rebase,
amend, branch name, discard)

Today every one of those actions is explicit except discard.
So basically everything that is (1) produced by "git commit", (2) not
connected to any ref and (3) not an amend. I think (1) and (3) can be
achieved with "git log -g --grep-reflog commit: HEAD". We only need to
filter out ones that are connected to some ref. Not sure if that can
be done with script though. Maybe add "--dangling" to "git log -g" to
do such filtering?
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help