Browse Source

Moves/renames GitService

main
Eric Amodio 3 years ago
parent
commit
a3e06aecc3
7 changed files with 4328 additions and 4322 deletions
  1. +1
    -1
      src/commands/git/coauthors.ts
  2. +1
    -1
      src/container.ts
  3. +1
    -1
      src/extension.ts
  4. +1
    -1
      src/git/models/repository.ts
  5. +22
    -16
      src/git/providers/localGitProvider.ts
  6. +1
    -1
      src/views/viewCommands.ts

+ 1
- 1
src/commands/git/coauthors.ts View File

@ -2,7 +2,7 @@
import { commands } from 'vscode';
import { Container } from '../../container';
import { GitContributor, Repository } from '../../git/git';
import { GitService } from '../../git/gitService';
import { GitService } from '../../git/providers/localGitProvider';
import { Strings } from '../../system';
import {
PartialStepState,

+ 1
- 1
src/container.ts View File

@ -15,7 +15,7 @@ import {
FileAnnotationType,
} from './configuration';
import { GitFileSystemProvider } from './git/fsProvider';
import { GitService } from './git/gitService';
import { GitService } from './git/providers/localGitProvider';
import { LineHoverController } from './hovers/lineHoverController';
import { Keyboard } from './keyboard';
import { Logger } from './logger';

+ 1
- 1
src/extension.ts View File

@ -8,9 +8,9 @@ import { configuration, Configuration, TraceLevel } from './configuration';
import { ContextKeys, GlobalState, GlyphChars, setContext, SyncedState } from './constants';
import { Container } from './container';
import { Git, GitBranch, GitCommit } from './git/git';
import { GitService } from './git/gitService';
import { GitUri } from './git/gitUri';
import { InvalidGitConfigError, UnableToFindGitError } from './git/locator';
import { GitService } from './git/providers/localGitProvider';
import { Logger } from './logger';
import { Messages } from './messages';
import { registerPartnerActionRunners } from './partners';

+ 1
- 1
src/git/models/repository.ts View File

@ -32,8 +32,8 @@ import {
GitTag,
SearchPattern,
} from '../git';
import { GitService } from '../gitService';
import { GitUri } from '../gitUri';
import { GitService } from '../providers/localGitProvider';
import { RemoteProviderFactory, RemoteProviders, RichRemoteProvider } from '../remotes/factory';
import {
BranchSortOptions,

src/git/gitService.ts → src/git/providers/localGitProvider.ts View File

@ -19,14 +19,14 @@ import {
WorkspaceFolder,
WorkspaceFoldersChangeEvent,
} from 'vscode';
import type { API as BuiltInGitApi, Repository as BuiltInGitRepository, GitExtension } from '../@types/vscode.git';
import { resetAvatarCache } from '../avatars';
import { configuration } from '../configuration';
import { BuiltInGitConfiguration, ContextKeys, DocumentSchemes, GlyphChars, setContext } from '../constants';
import { Container } from '../container';
import { setEnabled } from '../extension';
import { LogCorrelationContext, Logger } from '../logger';
import { Messages } from '../messages';
import type { API as BuiltInGitApi, Repository as BuiltInGitRepository, GitExtension } from '../../@types/vscode.git';
import { resetAvatarCache } from '../../avatars';
import { configuration } from '../../configuration';
import { BuiltInGitConfiguration, ContextKeys, DocumentSchemes, GlyphChars, setContext } from '../../constants';
import { Container } from '../../container';
import { setEnabled } from '../../extension';
import { LogCorrelationContext, Logger } from '../../logger';
import { Messages } from '../../messages';
import {
Arrays,
debug,
@ -39,9 +39,15 @@ import {
Strings,
TernarySearchTree,
Versions,
} from '../system';
import { CachedBlame, CachedDiff, CachedLog, GitDocumentState, TrackedDocument } from '../trackers/gitDocumentTracker';
import { vslsUriPrefixRegex } from '../vsls/vsls';
} from '../../system';
import {
CachedBlame,
CachedDiff,
CachedLog,
GitDocumentState,
TrackedDocument,
} from '../../trackers/gitDocumentTracker';
import { vslsUriPrefixRegex } from '../../vsls/vsls';
import {
Authentication,
BranchDateFormatting,
@ -97,11 +103,11 @@ import {
RepositoryChangeEvent,
SearchPattern,
TagSortOptions,
} from './git';
import { GitUri } from './gitUri';
import { GitReflogParser, GitShortLogParser } from './parsers/parsers';
import { RemoteProvider, RemoteProviderFactory, RemoteProviders, RichRemoteProvider } from './remotes/factory';
import { fsExists, isWindows } from './shell';
} from '../git';
import { GitUri } from '../gitUri';
import { GitReflogParser, GitShortLogParser } from '../parsers/parsers';
import { RemoteProvider, RemoteProviderFactory, RemoteProviders, RichRemoteProvider } from '../remotes/factory';
import { fsExists, isWindows } from '../shell';
const emptyStr = '';
const slash = '/';

+ 1
- 1
src/views/viewCommands.ts View File

@ -16,8 +16,8 @@ import { configuration, FileAnnotationType, ViewShowBranchComparison } from '../
import { BuiltInCommands, BuiltInGitCommands, ContextKeys, setContext } from '../constants';
import { Container } from '../container';
import { GitReference, GitRevision } from '../git/git';
import { GitService } from '../git/gitService';
import { GitUri } from '../git/gitUri';
import { GitService } from '../git/providers/localGitProvider';
import { debug } from '../system';
import { runGitCommandInTerminal } from '../terminal';
import {

Loading…
Cancel
Save