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

Commit 6cabf37

Browse files
Merge branch 'fixes/roll-back-patches' into fixes/repository-initialize-git-commands
2 parents acd14c5 + 4314b73 commit 6cabf37

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
@@ -76,22 +76,12 @@ public ITask SetupRemote(string remote, string remoteUrl)
7676

7777
public ITask CommitAllFiles(string message, string body)
7878
{
79-
return repositoryManager
80-
.CommitAllFiles(message, body)
81-
.Then(() => {
82-
UpdateGitStatus();
83-
UpdateGitLog();
84-
});
79+
return repositoryManager.CommitAllFiles(message, body);
8580
}
8681

8782
public ITask CommitFiles(List<string> files, string message, string body)
8883
{
89-
return repositoryManager
90-
.CommitFiles(files, message, body)
91-
.Then(() => {
92-
UpdateGitStatus();
93-
UpdateGitLog();
94-
});
84+
return repositoryManager.CommitFiles(files, message, body);
9585
}
9686

9787
public ITask Pull()
@@ -127,21 +117,6 @@ public ITask ReleaseLock(string file, bool force)
127117
.Then(UpdateLocks);
128118
}
129119

130-
public void RefreshLog()
131-
{
132-
UpdateGitLog();
133-
}
134-
135-
public void RefreshStatus()
136-
{
137-
UpdateGitStatus();
138-
}
139-
140-
public void UpdateConfigData()
141-
{
142-
repositoryManager?.UpdateConfigData();
143-
}
144-
145120
public void CheckLogChangedEvent(CacheUpdateEvent cacheUpdateEvent)
146121
{
147122
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)