mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
wip: git init
This commit is contained in:
@@ -42,13 +42,12 @@ async function init(disposables: Disposable[]): Promise<void> {
|
||||
const info = await findGit(pathHint);
|
||||
const git = new Git({ gitPath: info.path, version: info.version });
|
||||
const repository = git.open(rootPath);
|
||||
const repositoryRoot = await repository.getRoot();
|
||||
const model = new Model(repositoryRoot, repository, onWorkspaceChange);
|
||||
const model = new Model(repository, onWorkspaceChange);
|
||||
|
||||
outputChannel.appendLine(localize('using git', "Using git {0} from {1}", info.version, info.path));
|
||||
git.onOutput(str => outputChannel.append(str), null, disposables);
|
||||
|
||||
const commitHandler = new CommitController(model);
|
||||
const commitHandler = new CommitController();
|
||||
const commandCenter = new CommandCenter(model, outputChannel);
|
||||
const provider = new GitSCMProvider(model, commandCenter);
|
||||
const contentProvider = new GitContentProvider(git, rootPath, onGitChange);
|
||||
|
||||
Reference in New Issue
Block a user