Skip to content

Commit 0799fab

Browse files
committed
Fixes #574 - Apply Changes not working because of whitespace conflicts
1 parent a5a77f1 commit 0799fab

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1515

1616
### Fixed
1717

18+
- Fixes [#574](https://github.com/eamodio/vscode-gitlens/issues/574) — Apply Changes not working because of whitespace conflicts
1819
- Fixes html encoding issues with the _Search Commits_ view empty state
1920

2021
## [9.1.0] - 2018-12-12

src/git/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export class Git {
312312
}
313313

314314
static apply(repoPath: string | undefined, patch: string, options: { allowConflicts?: boolean } = {}) {
315-
const params = ['apply'];
315+
const params = ['apply', '--whitespace=warn'];
316316
if (options.allowConflicts) {
317317
params.push(`-3`);
318318
}

0 commit comments

Comments
 (0)