Changes sha terminology to commit id

This commit is contained in:
Eric Amodio
2017-04-09 10:58:42 -04:00
parent 2a9b274920
commit 0854e0bcfb
6 changed files with 10 additions and 10 deletions

View File

@@ -66,7 +66,7 @@
"gitlens.blame.annotation.sha": {
"type": "boolean",
"default": true,
"description": "Specifies whether the commit sha will be shown in the blame annotations. Applies only to the `expanded` & `trailing` annotation styles"
"description": "Specifies whether the commit id (sha) will be shown in the blame annotations. Applies only to the `expanded` & `trailing` annotation styles"
},
"gitlens.blame.annotation.author": {
"type": "boolean",
@@ -470,7 +470,7 @@
},
{
"command": "gitlens.copyShaToClipboard",
"title": "Copy Commit Sha to Clipboard",
"title": "Copy Commit ID to Clipboard",
"category": "GitLens"
},
{

View File

@@ -47,7 +47,7 @@ export class CopyShaToClipboardCommand extends ActiveEditorCommand {
}
catch (ex) {
Logger.error(ex, 'CopyShaToClipboardCommand', `getBlameForLine(${blameline})`);
return window.showErrorMessage(`Unable to copy sha. See output channel for more details`);
return window.showErrorMessage(`Unable to copy commit id. See output channel for more details`);
}
}
@@ -56,7 +56,7 @@ export class CopyShaToClipboardCommand extends ActiveEditorCommand {
}
catch (ex) {
Logger.error(ex, 'CopyShaToClipboardCommand');
return window.showErrorMessage(`Unable to copy sha. See output channel for more details`);
return window.showErrorMessage(`Unable to copy commit id. See output channel for more details`);
}
}
}

View File

@@ -9,7 +9,7 @@ import { OpenRemotesCommandQuickPickItem } from './remotes';
export class BranchHistoryQuickPick {
static showProgress(branch: string) {
return showQuickPickProgress(`${branch} history \u2014 search by commit message, filename, or sha`,
return showQuickPickProgress(`${branch} history \u2014 search by commit message, filename, or commit id`,
{
left: KeyNoopCommand,
',': KeyNoopCommand,
@@ -27,7 +27,7 @@ export class BranchHistoryQuickPick {
items.splice(0, 0, new CommandQuickPickItem({
label: `$(search) Show Commit Search`,
description: `\u00a0 \u2014 \u00a0\u00a0 search for commits by message, author, files, or sha`
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);
@@ -99,7 +99,7 @@ export class BranchHistoryQuickPick {
const pick = await window.showQuickPick(items, {
matchOnDescription: true,
matchOnDetail: true,
placeHolder: `${branch} history \u2014 search by commit message, filename, or sha`,
placeHolder: `${branch} history \u2014 search by commit message, filename, or commit id`,
ignoreFocusOut: getQuickPickIgnoreFocusOut()
// onDidSelectItem: (item: QuickPickItem) => {
// scope.setKeyCommand('right', item);

View File

@@ -90,7 +90,7 @@ export class CommitDetailsQuickPick {
if (!stash) {
items.splice(index++, 0, new CommandQuickPickItem({
label: `$(clippy) Copy Commit Sha to Clipboard`,
label: `$(clippy) Copy Commit ID to Clipboard`,
description: `\u00a0 \u2014 \u00a0\u00a0 ${commit.shortSha}`
}, Commands.CopyShaToClipboard, [uri, commit.sha]));
}

View File

@@ -69,7 +69,7 @@ export class CommitFileDetailsQuickPick {
if (!stash) {
items.push(new CommandQuickPickItem({
label: `$(clippy) Copy Commit Sha to Clipboard`,
label: `$(clippy) Copy Commit ID to Clipboard`,
description: `\u00a0 \u2014 \u00a0\u00a0 ${commit.shortSha}`
}, Commands.CopyShaToClipboard, [uri, commit.sha]));

View File

@@ -32,7 +32,7 @@ export class StashListQuickPick {
matchOnDescription: true,
placeHolder: mode === 'apply'
? `Apply stashed changes to your working tree\u2026`
: `stashed changes \u2014 search by message, filename, or sha`,
: `stashed changes \u2014 search by message, filename, or commit id`,
ignoreFocusOut: getQuickPickIgnoreFocusOut()
// onDidSelectItem: (item: QuickPickItem) => {
// scope.setKeyCommand('right', item);