[codex] Reduce Git status polling churn (#3037)
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
ae7e88b0e0
commit
0baf1986e8
6 files changed
+227
-3
No files matched your search
@@ -747,7 +747,7 @@ export const makeGitManager = Effect.fn("makeGitManager")(function* () {
|
||||
);
|
||||
const readRemoteStatus = Effect.fn("readRemoteStatus")(function* (cwd: string) {
|
||||
const details = yield* gitCore
|
||||
.statusDetails(cwd)
|
||||
.statusDetailsRemote(cwd)
|
||||
.pipe(Effect.catchIf(isNotGitRepositoryError, () => Effect.succeed(null)));
|
||||
if (details === null || !details.isRepo) {
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user