Skip to content

Commit

Permalink
Merge pull request gitextensions#7367 from R0nd/7358
Browse files Browse the repository at this point in the history
Implement git-reset --merge and --keep options
  • Loading branch information
RussKie authored Nov 4, 2019
2 parents 1ab5976 + d0991e6 commit 1efcf3f
Show file tree
Hide file tree
Showing 6 changed files with 193 additions and 77 deletions.
4 changes: 4 additions & 0 deletions GitCommands/ArgumentBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ string GetArgument()
return "--soft";
case ResetMode.Mixed:
return "--mixed";
case ResetMode.Keep:
return "--keep";
case ResetMode.Merge:
return "--merge";
case ResetMode.Hard:
return "--hard";
default:
Expand Down
10 changes: 8 additions & 2 deletions GitCommands/Git/GitCommandHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,15 @@ public enum ResetMode
Mixed,

/// <summary>--hard</summary>
Hard
Hard,

// All options are not implemented, like --merge, --keep, --patch
/// <summary>--merge</summary>
Merge,

/// <summary>--keep</summary>
Keep

// All options are not implemented, like --patch
}

public static class GitCommandHelpers
Expand Down
194 changes: 119 additions & 75 deletions GitUI/HelperDialogs/FormResetCurrentBranch.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1efcf3f

Please sign in to comment.