feat: Allow Swap Commits in Revision Compare

This commit is contained in:
Giuseppe Lippolis 2024-07-23 11:41:33 +02:00
parent cd1eed4356
commit 5cc30f7d10
8 changed files with 91 additions and 70 deletions

View file

@ -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
View file

@ -0,0 +1,7 @@
namespace SourceGit.Models
{
public interface IObjectId
{
string SHA { get; }
}
}

View file

@ -9,7 +9,7 @@
Commit,
}
public class Object
public class Object: IObjectId
{
public string SHA { get; set; }
public ObjectType Type { get; set; }