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

Commit 022b266

Browse files
Revert "Merge pull request #431 from github-for-unity/fixes/refresh-status-and-log-patch"
This reverts commit 64e45bd, reversing changes made to ad226dd.
1 parent 64e45bd commit 022b266

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

src/GitHub.Api/Git/IRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface IRepository : IEquatable<IRepository>
2121

2222
void RefreshLog();
2323
void RefreshStatus();
24-
void UpdateConfigData();
24+
2525
void CheckLogChangedEvent(CacheUpdateEvent gitLogCacheUpdateEvent);
2626
void CheckStatusChangedEvent(CacheUpdateEvent cacheUpdateEvent);
2727
void CheckCurrentBranchChangedEvent(CacheUpdateEvent cacheUpdateEvent);

src/GitHub.Api/Git/Repository.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,6 @@ public void RefreshStatus()
142142
UpdateGitStatus();
143143
}
144144

145-
public void UpdateConfigData()
146-
{
147-
repositoryManager?.UpdateConfigData();
148-
}
149-
150145
public void CheckLogChangedEvent(CacheUpdateEvent cacheUpdateEvent)
151146
{
152147
var managedCache = cacheContainer.GitLogCache;

src/GitHub.Api/Git/RepositoryManager.cs

Lines changed: 2 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; }
@@ -178,6 +177,7 @@ public ITask CommitAllFiles(string message, string body)
178177
add.OnStart += t => IsBusy = true;
179178
return add
180179
.Then(GitClient.Commit(message, body))
180+
.Then(UpdateConfigData)
181181
.Finally(() => IsBusy = false);
182182
}
183183

@@ -187,6 +187,7 @@ public ITask CommitFiles(List<string> files, string message, string body)
187187
add.OnStart += t => IsBusy = true;
188188
return add
189189
.Then(GitClient.Commit(message, body))
190+
.Then(UpdateConfigData)
190191
.Finally(() => IsBusy = false);
191192
}
192193

@@ -297,11 +298,6 @@ public ITask UnlockFile(string file, bool force)
297298
return HookupHandlers(task);
298299
}
299300

300-
public void UpdateConfigData()
301-
{
302-
UpdateConfigData(false);
303-
}
304-
305301
private void LoadGitUser()
306302
{
307303
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

0 commit comments

Comments
 (0)