From 1cda5d858e98baa943c675c8295d36d7b029c24f Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 26 Sep 2024 11:29:32 +0800 Subject: [PATCH] feature: add `--merge` and `--keep` support to `git reset` command (#514) --- src/Models/ResetMode.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Models/ResetMode.cs b/src/Models/ResetMode.cs index f2bfb5ef..5a0d4369 100644 --- a/src/Models/ResetMode.cs +++ b/src/Models/ResetMode.cs @@ -9,6 +9,8 @@ namespace SourceGit.Models new ResetMode("Soft", "Keep all changes. Stage differences", "--soft", Brushes.Green), new ResetMode("Mixed", "Keep all changes. Unstage differences", "--mixed", Brushes.Orange), new ResetMode("Hard", "Discard all changes", "--hard", Brushes.Red), + new ResetMode("Merge", "Reset to a commit, keeping unmerged changes", "--merge", Brushes.Green), + new ResetMode("Keep", "Reset while keeping local modifications", "--keep", Brushes.Green), ]; public string Name { get; set; }