Skip to content

Commit 1bb477f

Browse files
fix(graph): stop filtering phase 2 commits by current user email
The two-phase refresh unconditionally passed current_user_email as the author_filter for phase 2, so only the current user's commits loaded after the first 100. This left other authors' commits missing, preventing branch lanes from converging and causing the graph to grow extremely wide. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e5d6285 commit 1bb477f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/rgitui_git/src/project/refresh.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,6 @@ impl GitProject {
601601
.await?;
602602

603603
let needs_more = data.has_more_commits && first_batch < commit_limit;
604-
let user_email_for_commits = data.current_user_email.clone();
605604
let branch_tips: Vec<(git2::Oid, bool, String)> = data
606605
.branches
607606
.iter()
@@ -630,7 +629,6 @@ impl GitProject {
630629
if needs_more {
631630
let remaining = commit_limit - first_batch;
632631
let repo_path_p2 = repo_path.clone();
633-
let user_email_p2 = user_email_for_commits.clone();
634632
let (more_commits, has_more) = cx
635633
.background_executor()
636634
.spawn(async move {
@@ -640,7 +638,7 @@ impl GitProject {
640638
remaining,
641639
&branch_tips,
642640
&tag_tips,
643-
user_email_p2.as_deref(),
641+
None,
644642
)
645643
})
646644
.await?;

0 commit comments

Comments
 (0)