Skip to content

Commit 159466d

Browse files
committed
feat: Add solo multi commits filter
- Add solo commits filter option to the context menu for commit selection. - it will be useful for compare those branchs/tags/commits
1 parent d0d7e31 commit 159466d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Views/Histories.axaml.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,17 @@ private ContextMenu CreateContextMenuForMultipleCommits(ViewModels.Repository re
412412
menu.Items.Add(saveToPatch);
413413
menu.Items.Add(new MenuItem() { Header = "-" });
414414

415+
var soloCommits = new MenuItem();
416+
soloCommits.Header = App.Text("CommitCM.SoloCommits");
417+
soloCommits.Icon = App.CreateMenuIcon("Icons.LightOn");
418+
soloCommits.Click += (_, e) =>
419+
{
420+
repo.SetSoloCommitFilterMode(selected, Models.FilterMode.Included);
421+
e.Handled = true;
422+
};
423+
menu.Items.Add(soloCommits);
424+
menu.Items.Add(new MenuItem() { Header = "-" });
425+
415426
var copyShas = new MenuItem();
416427
copyShas.Header = App.Text("CommitCM.CopySHA");
417428
copyShas.Icon = App.CreateMenuIcon("Icons.Hash");

0 commit comments

Comments
 (0)