mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 05:05:00 +00:00
feature: supports sort branches by committer date (#1192)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
b7fa04d141
commit
e45e37d305
10 changed files with 217 additions and 20 deletions
|
@ -23,10 +23,17 @@ namespace SourceGit.Models
|
|||
}
|
||||
}
|
||||
|
||||
public enum BranchSortMode
|
||||
{
|
||||
Name = 0,
|
||||
CommitterDate,
|
||||
}
|
||||
|
||||
public class Branch
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string FullName { get; set; }
|
||||
public ulong CommitterDate { get; set; }
|
||||
public string Head { get; set; }
|
||||
public bool IsLocal { get; set; }
|
||||
public bool IsCurrent { get; set; }
|
||||
|
|
|
@ -38,6 +38,18 @@ namespace SourceGit.Models
|
|||
set;
|
||||
} = false;
|
||||
|
||||
public BranchSortMode LocalBranchSortMode
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} = BranchSortMode.Name;
|
||||
|
||||
public BranchSortMode RemoteBranchSortMode
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} = BranchSortMode.Name;
|
||||
|
||||
public TagSortMode TagSortMode
|
||||
{
|
||||
get;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue