wip: git init

This commit is contained in:
Joao Moreno
2017-02-15 17:46:58 +01:00
parent a7f80ccece
commit ac703e0d92
14 changed files with 168 additions and 78 deletions

View File

@@ -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);