Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 5b9eef4

Browse files
Merge branch 'master' into fixes/git-pull-update-log
2 parents 7674830 + c6eefe9 commit 5b9eef4

File tree

3 files changed

+38
-15
lines changed

3 files changed

+38
-15
lines changed

common/SolutionInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
namespace System
3232
{
3333
internal static class AssemblyVersionInformation {
34-
internal const string Version = "0.24.0";
34+
internal const string Version = "0.25.0";
3535
}
3636
}

src/GitHub.Api/Git/GitStatusEntry.cs

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,45 @@ namespace GitHub.Unity
55
[Serializable]
66
public struct GitStatusEntry
77
{
8-
public string Path;
9-
public string FullPath;
10-
public string ProjectPath;
11-
public string OriginalPath;
12-
public GitFileStatus Status;
13-
public bool Staged;
8+
public static GitStatusEntry Default = new GitStatusEntry();
9+
10+
public string path;
11+
public string fullPath;
12+
public string projectPath;
13+
public string originalPath;
14+
public GitFileStatus status;
15+
public bool staged;
1416

1517
public GitStatusEntry(string path, string fullPath, string projectPath,
1618
GitFileStatus status,
1719
string originalPath = null, bool staged = false)
1820
{
19-
Path = path;
20-
Status = status;
21-
FullPath = fullPath;
22-
ProjectPath = projectPath;
23-
OriginalPath = originalPath;
24-
Staged = staged;
21+
Guard.ArgumentNotNullOrWhiteSpace(path, "path");
22+
Guard.ArgumentNotNullOrWhiteSpace(fullPath, "fullPath");
23+
24+
this.path = path;
25+
this.status = status;
26+
this.fullPath = fullPath;
27+
this.projectPath = projectPath;
28+
this.originalPath = originalPath;
29+
this.staged = staged;
2530
}
2631

32+
public string Path => path;
33+
34+
public string FullPath => fullPath;
35+
36+
public string ProjectPath => projectPath;
37+
38+
public string OriginalPath => originalPath;
39+
40+
public GitFileStatus Status => status;
41+
42+
public bool Staged => staged;
43+
2744
public override string ToString()
2845
{
29-
return String.Format("Path:'{0}' Status:'{1}' FullPath:'{2}' ProjectPath:'{3}' OriginalPath:'{4}' Staged:'{5}'", Path, Status, FullPath, ProjectPath, OriginalPath, Staged);
46+
return $"Path:'{Path}' Status:'{Status}' FullPath:'{FullPath}' ProjectPath:'{ProjectPath}' OriginalPath:'{OriginalPath}' Staged:'{Staged}'";
3047
}
3148
}
3249
}

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/TreeControl.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,16 @@ public void Load(IEnumerable<ITreeData> data, string title)
9191
var alreadyExists = folders.ContainsKey(name);
9292
if (!alreadyExists)
9393
{
94+
var isActive = false;
95+
if (name == d.Name)
96+
{
97+
isActive = d.IsActive;
98+
}
99+
94100
var node = new TreeNode
95101
{
96102
Name = name,
97-
IsActive = d.IsActive,
103+
IsActive = isActive,
98104
Label = label,
99105
Level = level,
100106
IsFolder = isFolder

0 commit comments

Comments
 (0)