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

Commit f73d28a

Browse files
Merge pull request #433 from github-for-unity/fixes/roll-back-patches
Rolling back of recent patches
2 parents ca56968 + 4314b73 commit f73d28a

File tree

6 files changed

+5
-40
lines changed

6 files changed

+5
-40
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-
void UpdateConfigData();
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 & 27 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,21 +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-
145-
public void UpdateConfigData()
146-
{
147-
repositoryManager?.UpdateConfigData();
148-
}
149-
150125
public void CheckLogChangedEvent(CacheUpdateEvent cacheUpdateEvent)
151126
{
152127
var managedCache = cacheContainer.GitLogCache;

src/GitHub.Api/Git/RepositoryManager.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public interface IRepositoryManager : IDisposable
4040
ITask LockFile(string file);
4141
ITask UnlockFile(string file, bool force);
4242
int WaitForEvents();
43-
void UpdateConfigData();
4443

4544
IGitConfig Config { get; }
4645
IGitClient GitClient { get; }
@@ -295,11 +294,6 @@ public ITask UnlockFile(string file, bool force)
295294
return HookupHandlers(task);
296295
}
297296

298-
public void UpdateConfigData()
299-
{
300-
UpdateConfigData(false);
301-
}
302-
303297
private void LoadGitUser()
304298
{
305299
GitClient.GetConfigUserAndEmail()

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public override void OnEnable()
6868
if (Repository != null)
6969
{
7070
Repository.CheckLocalAndRemoteBranchListChangedEvent(lastLocalAndRemoteBranchListChangedEvent);
71-
Repository.UpdateConfigData();
7271
}
7372
}
7473

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)