mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
feature: merge multiple heads (#793)
* feature: allow merging multiple heads * feature: allow merging multiple branches from branch tree
This commit is contained in:
parent
c9c7fb5d5b
commit
dce33fdf60
11 changed files with 232 additions and 10 deletions
24
src/Models/MergeStrategy.cs
Normal file
24
src/Models/MergeStrategy.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace SourceGit.Models
|
||||
{
|
||||
public class MergeStrategy
|
||||
{
|
||||
public string Name { get; internal set; }
|
||||
public string Desc { get; internal set; }
|
||||
public string Arg { get; internal set; }
|
||||
|
||||
public static List<MergeStrategy> ForMultiple { get; private set; } = [
|
||||
new MergeStrategy(string.Empty, "Let Git automatically select a strategy", null),
|
||||
new MergeStrategy("Octopus", "Attempt merging multiple heads", "octopus"),
|
||||
new MergeStrategy("Ours", "Record the merge without modifying the tree", "ours"),
|
||||
];
|
||||
|
||||
public MergeStrategy(string n, string d, string a)
|
||||
{
|
||||
Name = n;
|
||||
Desc = d;
|
||||
Arg = a;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue