Skip to content

feat: toggle hiding merge commits in revlog#2931

Open
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:feat/log-hide-merge-commits-2830
Open

feat: toggle hiding merge commits in revlog#2931
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:feat/log-hide-merge-commits-2830

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

  • Add Shift+M on the log tab to hide merge commits (equivalent to git log --no-merges).
  • Uses LogWalker with a filter that skips commits with more than one parent.
  • Panel title shows Commit (no merges) while the filter is active.

Fixes #2830

Test plan

  • Open a repo with merge commits on the log tab
  • Press Shift+M — merge commits disappear from the list
  • Press Shift+M again — merge commits return
  • Confirm search mode still works when filter is off

Made with Cursor

Press Shift+M on the log tab to filter merge commits (like git log
--no-merges). Rebuilds the async log walk with a parent-count filter.

Fixes gitui-org#2830

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filter out merge commits

1 participant