Bläddra i källkod

Fixes #343 - use case insensitive matching for git errors

main
Eric Amodio 6 år sedan
förälder
incheckning
9089de7e4b
2 ändrade filer med 10 tillägg och 9 borttagningar
  1. +1
    -0
      CHANGELOG.md
  2. +9
    -9
      src/git/git.ts

+ 1
- 0
CHANGELOG.md Visa fil

@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Fixes [#345](https://github.com/eamodio/vscode-gitlens/issues/345) - Custom date formats don't work in the GitLens view
- Fixes [#336](https://github.com/eamodio/vscode-gitlens/issues/336) - Default Settings Get Added Automatically
- Fixes [#342](https://github.com/eamodio/vscode-gitlens/issues/342) - GitLens crashes while debugging with Chrome Debugger a larger project
- Fixes [#343](https://github.com/eamodio/vscode-gitlens/issues/343) - Can't show blame when VSCode starts on branch without upstream
- Fixes issue where username and/or password in a remote urls could be shown
## [8.2.1] - 2018-04-11

+ 9
- 9
src/git/git.ts Visa fil

@ -50,15 +50,15 @@ const stashFormat = [
const defaultStashParams = ['stash', 'list', '--name-status', '-M', `--format=${stashFormat}`];
const GitWarnings = {
notARepository: /Not a git repository/,
outsideRepository: /is outside repository/,
noPath: /no such path/,
noCommits: /does not have any commits/,
notFound: /Path \'.*?\' does not exist in/,
foundButNotInRevision: /Path \'.*?\' exists on disk, but not in/,
headNotABranch: /HEAD does not point to a branch/,
noUpstream: /no upstream configured for branch \'(.*?)\'/,
unknownRevision: /ambiguous argument \'.*?\': unknown revision or path not in the working tree/
notARepository: /Not a git repository/i,
outsideRepository: /is outside repository/i,
noPath: /no such path/i,
noCommits: /does not have any commits/i,
notFound: /Path \'.*?\' does not exist in/i,
foundButNotInRevision: /Path \'.*?\' exists on disk, but not in/i,
headNotABranch: /HEAD does not point to a branch/i,
noUpstream: /no upstream configured for branch \'(.*?)\'/i,
unknownRevision: /ambiguous argument \'.*?\': unknown revision or path not in the working tree/i
};
async function gitCommand(options: CommandOptions & { readonly correlationKey?: string }, ...args: any[]): Promise<string> {

Laddar…
Avbryt
Spara