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

Commit d78cf98

Browse files
Merge branch 'master' into enhancements/removing-old-tree-code
# Conflicts: # src/GitHub.Api/GitHub.Api.csproj # src/tests/UnitTests/UnitTests.csproj
2 parents 03e6346 + fa1ffde commit d78cf98

File tree

17 files changed

+990
-624
lines changed

17 files changed

+990
-624
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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public GitStatusEntry(string path, string fullPath, string projectPath,
2020
{
2121
Guard.ArgumentNotNullOrWhiteSpace(path, "path");
2222
Guard.ArgumentNotNullOrWhiteSpace(fullPath, "fullPath");
23-
Guard.ArgumentNotNullOrWhiteSpace(projectPath, "projectPath");
2423

2524
this.path = path;
2625
this.status = status;

src/GitHub.Api/Git/RepositoryManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,13 +446,14 @@ private void WatcherOnLocalBranchesChanged()
446446
{
447447
Logger.Trace("WatcherOnLocalBranchesChanged");
448448
UpdateLocalBranches();
449+
UpdateGitLog();
449450
}
450451

451452
private void WatcherOnRepositoryCommitted()
452453
{
453454
Logger.Trace("WatcherOnRepositoryCommitted");
454455
UpdateGitLog();
455-
UpdateGitAheadBehindStatus();
456+
UpdateGitStatus();
456457
}
457458

458459
private void WatcherOnRepositoryChanged()

src/GitHub.Api/Git/TreeData.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ public interface ITreeData
66
{
77
string Path { get; }
88
bool IsActive { get; }
9-
string CustomStringTag { get;}
10-
int CustomIntTag { get; }
119
}
1210

1311
[Serializable]
@@ -24,10 +22,6 @@ public GitBranchTreeData(GitBranch gitBranch)
2422

2523
public string Path => GitBranch.Name;
2624
public bool IsActive => GitBranch.IsActive;
27-
28-
public string CustomStringTag => null;
29-
30-
public int CustomIntTag => 0;
3125
}
3226

3327
[Serializable]
@@ -42,12 +36,11 @@ public GitStatusEntryTreeData(GitStatusEntry gitStatusEntry)
4236
this.gitStatusEntry = gitStatusEntry;
4337
}
4438

45-
public string Path => gitStatusEntry.ProjectPath;
39+
public string Path => gitStatusEntry.Path;
40+
public string ProjectPath => gitStatusEntry.ProjectPath;
4641
public bool IsActive => false;
4742
public GitStatusEntry GitStatusEntry => gitStatusEntry;
4843

49-
public string CustomStringTag => gitStatusEntry.ProjectPath;
50-
51-
public int CustomIntTag => (int)gitStatusEntry.Status;
44+
public GitFileStatus FileStatus => gitStatusEntry.Status;
5245
}
5346
}

src/GitHub.Api/GitHub.Api.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
<Compile Include="Extensions\UriExtensions.cs" />
237237
<Compile Include="Platform\Platform.cs" />
238238
<Compile Include="Git\GitCredentialManager.cs" />
239-
<Compile Include="UI\TreeLoader.cs" />
239+
<Compile Include="UI\TreeBase.cs" />
240240
</ItemGroup>
241241
<Choose>
242242
<When Condition="$(Buildtype) == 'Internal'">

0 commit comments

Comments
 (0)