seegit icon indicating copy to clipboard operation
seegit copied to clipboard

Toggle Show Unreachable vs Reachable Commits

Open haacked opened this issue 12 years ago • 3 comments

Being able to see the entire Git repository graph, not just the reachable commits, is very helpful for debugging git issues. For example, if you run: git reset HEAD~1 --soft, the branch pointer will move to its parent commit. But you may still want to see the child commit.

By default, we should only show the reachable commits. But let's have a toggle button that will show all commits in the git repo graph. The non-reachable commits should be slightly greyed out or something to indicate they're in an unreachable state.

haacked avatar Mar 09 '12 18:03 haacked

@Haacked the binary from your blog post http://haacked.com/archive/2012/03/15/visualize-git-with-seegit.aspx has this feature. That is it shows dangling (unreachable) commits though current version (built from master) doesn't. Could you give me a pointer as to what could've changed for it to get intentionally or unintentionally broken?

mdonatas avatar Jun 11 '13 12:06 mdonatas

My bad, it seems to be showing dangling commits (i.e. amended ones) only if SeeGit detects them while it's running.

mdonatas avatar Jun 11 '13 18:06 mdonatas

@mdonatas Yeas, that's the current behavior. Because we don't refresh our UI graph when commits go away. I'd like to have it show all commits, but that'd be a little tricky. We'd need to parse the reflog to find commits we might not know about. If it's not reachable, it's generally not easy to get a reference to it. :)

haacked avatar Jun 11 '13 21:06 haacked