|
|
@ -7,7 +7,7 @@ import { configuration } from '../../configuration'; |
|
|
|
import { CoreGitCommands, CoreGitConfiguration, Schemes } from '../../constants'; |
|
|
|
import type { Container } from '../../container'; |
|
|
|
import type { FeatureAccess, Features, PlusFeatures } from '../../features'; |
|
|
|
import { Logger } from '../../logger'; |
|
|
|
import { getLoggableName, Logger } from '../../logger'; |
|
|
|
import { getLogScope } from '../../logScope'; |
|
|
|
import { showCreatePullRequestPrompt, showGenericErrorMessage } from '../../messages'; |
|
|
|
import { asRepoComparisonKey } from '../../repositories'; |
|
|
@ -317,6 +317,10 @@ export class Repository implements Disposable { |
|
|
|
this._disposable.dispose(); |
|
|
|
} |
|
|
|
|
|
|
|
toString(): string { |
|
|
|
return `${getLoggableName(this)}(${this.id})`; |
|
|
|
} |
|
|
|
|
|
|
|
get virtual(): boolean { |
|
|
|
return this.provider.virtual; |
|
|
|
} |
|
|
@ -1204,3 +1208,7 @@ export class Repository implements Disposable { |
|
|
|
setTimeout(() => this.fireChange(RepositoryChange.Unknown), 2500); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export function isRepository(repository: unknown): repository is Repository { |
|
|
|
return repository instanceof Repository; |
|
|
|
} |