Skip to content

Commit

Permalink
Keep trailing whitespace in diff files
Browse files Browse the repository at this point in the history
Without this, editorconfig-vim strips trailing whitespace in context and
old lines in unified diff (used frequently in the git add --patch
workflow), upon saving; the resulting diff fails to apply.
  • Loading branch information
Eugene M. Kim committed Jun 8, 2017
1 parent d737f1f commit 2e5721c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ insert_final_newline = false

[Makefile]
indent_style = tab

[*.{diff,patch}]
trim_trailing_whitespace = false

0 comments on commit 2e5721c

Please sign in to comment.