Skip to content

Commit

Permalink
Release 1.24.0 package & documentation changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutchie committed Jun 14, 2020
1 parent a0d6cc2 commit febf93f
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop

jobs:
build:
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## 1.24.0 - 2020-06-14
* #271 Support for Visual Studio Code in Web Browsers. Git Graph officially supports Visual Studio Code in Microsoft's Visual Studio Codespaces in the Google Chrome browser, however the underlying changes allow Git Graph to be supported in most third-party Visual Studio Code browser-based platforms, and in most popular web browsers.
* #297 When checking out a remote branch & the specified branch name already exists locally, the dialog option to "Checkout the existing branch" has been replaced with "Checkout the existing branch & pull changes".
* #304 Override the globally configured commit ordering (configured by `git-graph.commitOrdering`) per repository from the Git Graph View Column Header context menu.
* #305 Upgraded the minimum version requirement of Visual Studio Code from 1.31.0 to 1.38.0. This change has been needed for some time, however I now have to make this change due to Visual Studio Code decreasing support for older Webview integrations for all extensions. Almost all users of Git Graph will be unaffected by this change. If you are one of the few Git Graph users who use a version of Visual Studio Code older than 1.38.0, please upgrade Visual Studio Code to continue receiving updates to Git Graph.
* #316 Include built-in support for several new emoji shortcodes recently added to [gitmoji](https://gitmoji.carloscuesta.me/).
* #319 Added a new Extension Setting `git-graph.enhancedAccessibility`, that enables visual file change A|M|D|R|U indicators in the Commit Details View for users with colour blindness. In the future, this setting will enable any additional accessibility related features of Git Graph that aren't enabled by default. Default: false (disabled)
* Various code improvements.

## 1.23.0 - 2020-05-24
* #89 Added a new "Include commits only mentioned by reflogs" option to the Git Graph View's Repository Settings Widget. The default value can be defined globally for all repositories using the new Extension Setting `git-graph.includeCommitsMentionedByReflogs`. Default: false (disabled)
* #201 New Keyboard Shortcuts in the Git Graph View for scrolling to stashes:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ A summary of the Git Graph extension settings are:
* **Default Column Visibility**: An object specifying the default visibility of the Date, Author & Commit columns. Example: `{"Date": true, "Author": true, "Commit": true}`
* **Default File View Type**: Sets the default type of File View (Tree or List) used in the Commit Details / Comparison Views. This can be overridden per repository using the controls on the right side of the Commit Details / Comparison Views.
* **Dialog.\***: Set the default options on the following dialogs: Add Tag, Apply Stash, Cherry Pick, Create Branch, Delete Branch, Merge, Pop Stash, Rebase, Reset, and Stash Uncommitted Changes
* **Enhanced Accessibility**: Visual file change A|M|D|R|U indicators in the Commit Details View for users with colour blindness. In the future, this setting will enable any additional accessibility related features of Git Graph that aren't enabled by default. Default: false (disabled)
* **Fetch and Prune**: Before fetching from remote(s) using the Fetch button on the Git Graph View Control Bar, remove any remote-tracking references that no longer exist on the remote. Default: false (disabled)
* **Fetch Avatars**: Fetch avatars of commit authors and committers. Default: false (disabled)
* **File Encoding**: The character set encoding used when retrieving a specific version of repository files (e.g. in the Diff View). A list of all supported encodings can be found [here](https://github.com/ashtuchkin/iconv-lite/wiki/Supported-Encodings). Default: utf8
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "git-graph",
"displayName": "Git Graph",
"version": "1.23.0",
"version": "1.24.0",
"publisher": "mhutchie",
"author": {
"name": "Michael Hutchison",
Expand Down
6 changes: 3 additions & 3 deletions src/gitGraphView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ export class GitGraphView implements vscode.Disposable {
break;
case 'checkoutBranch':
errorInfos = [await this.dataSource.checkoutBranch(msg.repo, msg.branchName, msg.remoteBranch)];
if (errorInfos[0] === null && msg.pullFromRemoteAfterwards !== null) {
errorInfos.push(await this.dataSource.pullBranch(msg.repo, msg.branchName, msg.pullFromRemoteAfterwards, false, false));
if (errorInfos[0] === null && msg.pullAfterwards !== null) {
errorInfos.push(await this.dataSource.pullBranch(msg.repo, msg.pullAfterwards.branchName, msg.pullAfterwards.remote, false, false));
}
this.sendMessage({
command: 'checkoutBranch',
pullFromRemoteAfterwards: msg.pullFromRemoteAfterwards,
pullAfterwards: msg.pullAfterwards,
errors: errorInfos
});
break;
Expand Down
10 changes: 8 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,11 +519,17 @@ export interface RequestCheckoutBranch extends RepoRequest {
readonly command: 'checkoutBranch';
readonly branchName: string;
readonly remoteBranch: string | null;
readonly pullFromRemoteAfterwards: string | null; // String => The remote to pull from, NULL => Don't pull after checking out
readonly pullAfterwards: {
readonly branchName: string;
readonly remote: string;
} | null; // NULL => Don't pull after checking out
}
export interface ResponseCheckoutBranch extends ResponseWithMultiErrorInfo {
readonly command: 'checkoutBranch';
readonly pullFromRemoteAfterwards: string | null; // String => The remote to pull from, NULL => Don't pull after checking out
readonly pullAfterwards: {
readonly branchName: string;
readonly remote: string;
} | null; // NULL => Don't pull after checking out
}

export interface RequestCheckoutCommit extends RepoRequest {
Expand Down
8 changes: 4 additions & 4 deletions web/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1446,14 +1446,14 @@ class GitGraphView {
dialog.showTwoButtons('The name <b><i>' + escapeHtml(newBranch) + '</i></b> is already used by another branch:', 'Choose another branch name', () => {
this.checkoutBranchAction(refName, remote, newBranch, target);
}, 'Checkout the existing branch' + (canPullFromRemote ? ' & pull changes' : ''), () => {
runAction({ command: 'checkoutBranch', repo: this.currentRepo, branchName: newBranch, remoteBranch: null, pullFromRemoteAfterwards: canPullFromRemote ? remote : null }, 'Checking out Branch' + (canPullFromRemote ? ' & Pulling Changes' : ''));
runAction({ command: 'checkoutBranch', repo: this.currentRepo, branchName: newBranch, remoteBranch: null, pullAfterwards: canPullFromRemote ? { branchName: refName.substring(remote.length + 1), remote: remote } : null }, 'Checking out Branch' + (canPullFromRemote ? ' & Pulling Changes' : ''));
}, target);
} else {
runAction({ command: 'checkoutBranch', repo: this.currentRepo, branchName: newBranch, remoteBranch: refName, pullFromRemoteAfterwards: null }, 'Checking out Branch');
runAction({ command: 'checkoutBranch', repo: this.currentRepo, branchName: newBranch, remoteBranch: refName, pullAfterwards: null }, 'Checking out Branch');
}
}, target);
} else {
runAction({ command: 'checkoutBranch', repo: this.currentRepo, branchName: refName, remoteBranch: null, pullFromRemoteAfterwards: null }, 'Checking out Branch');
runAction({ command: 'checkoutBranch', repo: this.currentRepo, branchName: refName, remoteBranch: null, pullAfterwards: null }, 'Checking out Branch');
}
}

Expand Down Expand Up @@ -2663,7 +2663,7 @@ window.addEventListener('load', () => {
refreshOrDisplayError(msg.error, 'Unable to Create Branch from Stash');
break;
case 'checkoutBranch':
refreshAndDisplayErrors(msg.errors, 'Unable to Checkout Branch' + (msg.pullFromRemoteAfterwards ? ' & Pull Changes' : ''));
refreshAndDisplayErrors(msg.errors, 'Unable to Checkout Branch' + (msg.pullAfterwards !== null ? ' & Pull Changes' : ''));
break;
case 'checkoutCommit':
refreshOrDisplayError(msg.error, 'Unable to Checkout Commit');
Expand Down

1 comment on commit febf93f

@Kattman5
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you guys for your help tremendously.

Please sign in to comment.