mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 13:51:53 +08:00
feat: Allow Swap Commits in Revision Compare
This commit is contained in:
@@ -6,7 +6,7 @@ using Avalonia.Media;
|
||||
|
||||
namespace SourceGit.Models
|
||||
{
|
||||
public class Commit
|
||||
public class Commit: IObjectId
|
||||
{
|
||||
public static double OpacityForNotMerged
|
||||
{
|
||||
|
||||
7
src/Models/IObjectId.cs
Normal file
7
src/Models/IObjectId.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace SourceGit.Models
|
||||
{
|
||||
public interface IObjectId
|
||||
{
|
||||
string SHA { get; }
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@
|
||||
Commit,
|
||||
}
|
||||
|
||||
public class Object
|
||||
public class Object: IObjectId
|
||||
{
|
||||
public string SHA { get; set; }
|
||||
public ObjectType Type { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user