You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the log starts from HEAD - no matter if that's a tip of a branch or not.
For #81 we need to do the revwalk from every tip and come up with a smart data structure that allows us to draw the correct graph without storing the whole graph in memory.
Before tackling #81 we can at least determine if we are on a detached head and then iterate the branches whether one is a descendent of our current HEAD and then start from the branch tip and visualize where HEAD is in the log.
Hi, I'd like to take this on. Plan: in LogWalker::new, check repo.head_detached(); if detached, iterate local branches via repo.branches(Some(BranchType::Local)) and use repo.graph_descendant_of() (same as the existing usage in commit_files.rs) to find a branch tip that descends from HEAD, then seed the walk from that tip instead of raw HEAD. Will do the same for LogWalkerWithoutFilter. Happy to adjust the approach if you have other ideas on how HEAD's position should be indicated in the resulting log.
Activity
MaxAsif commentedon Aug 20, 2026
Hi, I'd like to take this on. Plan: in
LogWalker::new, checkrepo.head_detached(); if detached, iterate local branches viarepo.branches(Some(BranchType::Local))and userepo.graph_descendant_of()(same as the existing usage incommit_files.rs) to find a branch tip that descends from HEAD, then seed the walk from that tip instead of raw HEAD. Will do the same forLogWalkerWithoutFilter. Happy to adjust the approach if you have other ideas on how HEAD's position should be indicated in the resulting log.MaxAsif commentedon Aug 20, 2026
On reflection I'll hold off on this one for now rather than sit on it - happy for anyone else to pick it up.