|
7 | 7 |
|
8 | 8 | import { Uri, commands, Disposable, window, workspace, QuickPickItem, OutputChannel, Range, WorkspaceEdit, Position, LineChange, SourceControlResourceState, TextDocumentShowOptions, ViewColumn, ProgressLocation, TextEditor, CancellationTokenSource, StatusBarAlignment } from 'vscode'; |
9 | 9 | import { Ref, RefType, Git, GitErrorCodes, Branch } from './git'; |
10 | | -import { Repository, Resource, Status, CommitOptions, ResourceGroupType, RepositoryState } from './repository'; |
| 10 | +import { Repository, Resource, Status, CommitOptions, ResourceGroupType } from './repository'; |
11 | 11 | import { Model } from './model'; |
12 | 12 | import { toGitUri, fromGitUri } from './uri'; |
13 | | -import { grep, eventToPromise, isDescendant } from './util'; |
| 13 | +import { grep, isDescendant } from './util'; |
14 | 14 | import { applyLineChanges, intersectDiffWithRange, toLineRanges, invertLineChange, getModifiedRange } from './staging'; |
15 | 15 | import * as path from 'path'; |
16 | 16 | import { lstat, Stats } from 'fs'; |
@@ -237,7 +237,7 @@ export class CommandCenter { |
237 | 237 | } |
238 | 238 |
|
239 | 239 | const { size, object } = await repository.lstree(gitRef, uri.fsPath); |
240 | | - const { mimetype, encoding } = await repository.detectObjectType(object); |
| 240 | + const { mimetype } = await repository.detectObjectType(object); |
241 | 241 |
|
242 | 242 | if (mimetype === 'text/plain') { |
243 | 243 | return toGitUri(uri, ref); |
@@ -1051,13 +1051,6 @@ export class CommandCenter { |
1051 | 1051 | value = (await repository.getCommit(repository.HEAD.commit)).message; |
1052 | 1052 | } |
1053 | 1053 |
|
1054 | | - const getPreviousCommitMessage = async () => { |
1055 | | - //Only return the previous commit message if it's an amend commit and the repo already has a commit |
1056 | | - if (opts && opts.amend && repository.HEAD && repository.HEAD.commit) { |
1057 | | - return (await repository.getCommit('HEAD')).message; |
1058 | | - } |
1059 | | - }; |
1060 | | - |
1061 | 1054 | return await window.showInputBox({ |
1062 | 1055 | value, |
1063 | 1056 | placeHolder: localize('commit message', "Commit message"), |
|
0 commit comments