From 8fb61e7ab5c49379c16985620cbe380f20c294e5 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 12 Apr 2017 16:21:25 -0400 Subject: [PATCH] Switches the order of Show Commit Search --- src/quickPicks/branchHistory.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/quickPicks/branchHistory.ts b/src/quickPicks/branchHistory.ts index e80ea54..1385cf8 100644 --- a/src/quickPicks/branchHistory.ts +++ b/src/quickPicks/branchHistory.ts @@ -25,16 +25,16 @@ export class BranchHistoryQuickPick { description: `\u00a0 \u2014 \u00a0\u00a0 to \u00a0$(git-branch) ${branch} history` }, Commands.ShowQuickBranchHistory, [uri, branch, log.maxCount, goBackCommand, log]); - items.splice(0, 0, new CommandQuickPickItem({ - label: `$(search) Show Commit Search`, - description: `\u00a0 \u2014 \u00a0\u00a0 search for commits by message, author, files, or commit id` - }, Commands.ShowCommitSearch, [new GitUri(Uri.file(log.repoPath), { fileName: '', repoPath: log.repoPath }), undefined, undefined, currentCommand])); - const remotes = Arrays.uniqueBy(await git.getRemotes((uri && uri.repoPath) || git.repoPath), _ => _.url, _ => !!_.provider); if (remotes.length) { items.splice(0, 0, new OpenRemotesCommandQuickPickItem(remotes, 'branch', branch, currentCommand)); } + items.splice(0, 0, new CommandQuickPickItem({ + label: `$(search) Show Commit Search`, + description: `\u00a0 \u2014 \u00a0\u00a0 search for commits by message, author, files, or commit id` + }, Commands.ShowCommitSearch, [new GitUri(Uri.file(log.repoPath), { fileName: '', repoPath: log.repoPath }), undefined, undefined, currentCommand])); + let previousPageCommand: CommandQuickPickItem; if (log.truncated || log.sha) {