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

Commit 4314b73

Browse files
Revert "Merge pull request #428 from github-for-unity/fixes/refresh-status-and-log-patch"
This reverts commit 85e8d7c, reversing changes made to e1f42ce.
1 parent 022b266 commit 4314b73

File tree

5 files changed

+5
-30
lines changed

5 files changed

+5
-30
lines changed

src/GitHub.Api/Git/IRepository.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ public interface IRepository : IEquatable<IRepository>
1919
ITask RequestLock(string file);
2020
ITask ReleaseLock(string file, bool force);
2121

22-
void RefreshLog();
23-
void RefreshStatus();
24-
2522
void CheckLogChangedEvent(CacheUpdateEvent gitLogCacheUpdateEvent);
2623
void CheckStatusChangedEvent(CacheUpdateEvent cacheUpdateEvent);
2724
void CheckCurrentBranchChangedEvent(CacheUpdateEvent cacheUpdateEvent);

src/GitHub.Api/Git/Repository.cs

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,12 @@ public ITask SetupRemote(string remote, string remoteUrl)
8181

8282
public ITask CommitAllFiles(string message, string body)
8383
{
84-
return repositoryManager
85-
.CommitAllFiles(message, body)
86-
.Then(() => {
87-
UpdateGitStatus();
88-
UpdateGitLog();
89-
});
84+
return repositoryManager.CommitAllFiles(message, body);
9085
}
9186

9287
public ITask CommitFiles(List<string> files, string message, string body)
9388
{
94-
return repositoryManager
95-
.CommitFiles(files, message, body)
96-
.Then(() => {
97-
UpdateGitStatus();
98-
UpdateGitLog();
99-
});
89+
return repositoryManager.CommitFiles(files, message, body);
10090
}
10191

10292
public ITask Pull()
@@ -132,16 +122,6 @@ public ITask ReleaseLock(string file, bool force)
132122
.Then(UpdateLocks);
133123
}
134124

135-
public void RefreshLog()
136-
{
137-
UpdateGitLog();
138-
}
139-
140-
public void RefreshStatus()
141-
{
142-
UpdateGitStatus();
143-
}
144-
145125
public void CheckLogChangedEvent(CacheUpdateEvent cacheUpdateEvent)
146126
{
147127
var managedCache = cacheContainer.GitLogCache;

src/GitHub.Api/Git/RepositoryManager.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ public ITask CommitAllFiles(string message, string body)
177177
add.OnStart += t => IsBusy = true;
178178
return add
179179
.Then(GitClient.Commit(message, body))
180-
.Then(UpdateConfigData)
181180
.Finally(() => IsBusy = false);
182181
}
183182

@@ -187,7 +186,6 @@ public ITask CommitFiles(List<string> files, string message, string body)
187186
add.OnStart += t => IsBusy = true;
188187
return add
189188
.Then(GitClient.Commit(message, body))
190-
.Then(UpdateConfigData)
191189
.Finally(() => IsBusy = false);
192190
}
193191

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public override void OnEnable()
4343
if (Repository != null)
4444
{
4545
Repository.CheckCurrentBranchChangedEvent(lastCurrentBranchChangedEvent);
46-
Repository.RefreshStatus();
46+
Repository.CheckStatusChangedEvent(lastStatusChangedEvent);
4747
}
4848
}
4949

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public override void OnEnable()
7373

7474
if (Repository != null)
7575
{
76-
Repository.RefreshLog();
77-
Repository.RefreshStatus();
76+
Repository.CheckLogChangedEvent(lastLogChangedEvent);
77+
Repository.CheckStatusChangedEvent(lastStatusChangedEvent);
7878
Repository.CheckCurrentRemoteChangedEvent(lastCurrentRemoteChangedEvent);
7979
}
8080
}

0 commit comments

Comments
 (0)