Skip to content

Commit d464105

Browse files
committed
Preserve diff context while marking line endings
1 parent 645f726 commit d464105

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/pre-commit.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ jobs:
1111
with:
1212
python-version: '3.x'
1313
- uses: pre-commit/action@v3.0.1
14-
with:
15-
extra_args: --all-files
16-
- name: Show diff of fixes
14+
- name: Show diff of fixes ($ at EOL)
15+
# trailing whitespace is hard to see, so add $
1716
if: failure()
18-
run: git diff --color --ws-error-highlight=all
17+
run: git diff | sed '/^[+-]/s/$/$/'

0 commit comments

Comments
 (0)