code_review: PR (#280)

* tooltip for swap button
* move `Views.CompareTargetWorktree` to `Models.CompareTargetWorktree`
* remove unused `Models.IObjectId`
* fix swap not working when target is Worktree, because Commands.CompareRevisions's Args do not changed after swapping
This commit is contained in:
leo 2024-07-23 19:13:32 +08:00
parent 8d4e010fc2
commit 1583b08892
No known key found for this signature in database
10 changed files with 56 additions and 59 deletions

View file

@ -6,7 +6,7 @@ using Avalonia.Media;
namespace SourceGit.Models
{
public class Commit: IObjectId
public class Commit
{
public static double OpacityForNotMerged
{

View file

@ -0,0 +1,6 @@
namespace SourceGit.Models
{
public class CompareTargetWorktree
{
}
}

View file

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

View file

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