Changes Repository History to Branch History

This commit is contained in:
Eric Amodio
2017-03-19 00:23:05 -04:00
parent 1c5e627f8e
commit 14eebbba15
7 changed files with 10 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ export class CopyMessageToClipboardCommand extends ActiveEditorCommand {
}
try {
// If we don't have an editor then get the message of the last commit to the repository
// If we don't have an editor then get the message of the last commit to the branch
if (!uri) {
const log = await this.git.getLogForRepo(this.repoPath, undefined, 1);
if (!log) return undefined;

View File

@@ -18,7 +18,7 @@ export class CopyShaToClipboardCommand extends ActiveEditorCommand {
}
try {
// If we don't have an editor then get the sha of the last commit to the repository
// If we don't have an editor then get the sha of the last commit to the branch
if (!uri) {
const log = await this.git.getLogForRepo(this.repoPath, undefined, 1);
if (!log) return undefined;

View File

@@ -61,10 +61,10 @@ export class ShowQuickCommitDetailsCommand extends ActiveEditorCommand {
}
if (!goBackCommand) {
// Create a command to get back to the repository history
// Create a command to get back to the branch history
goBackCommand = new CommandQuickPickItem({
label: `go back \u21A9`,
description: `\u00a0 \u2014 \u00a0\u00a0 to repository history`
description: `\u00a0 \u2014 \u00a0\u00a0 to branch history`
}, Commands.ShowQuickRepoHistory, [new GitUri(commit.uri, commit)]);
}

View File

@@ -46,13 +46,13 @@ export class ShowQuickRepoHistoryCommand extends ActiveEditorCommand {
return commands.executeCommand(Commands.ShowQuickCommitDetails, new GitUri(pick.commit.uri, pick.commit), pick.commit.sha, pick.commit,
new CommandQuickPickItem({
label: `go back \u21A9`,
description: `\u00a0 \u2014 \u00a0\u00a0 to repository history`
description: `\u00a0 \u2014 \u00a0\u00a0 to branch history`
}, Commands.ShowQuickRepoHistory, [uri, maxCount, goBackCommand, log]),
log);
}
catch (ex) {
Logger.error('[GitLens.ShowQuickRepoHistoryCommand]', ex);
return window.showErrorMessage(`Unable to show repository history. See output channel for more details`);
return window.showErrorMessage(`Unable to show history. See output channel for more details`);
}
finally {
progressCancellation.dispose();