mirror of
https://github.com/SeanOMik/eBookReaderSwitch.git
synced 2025-02-18 16:50:04 +00:00
11 lines
437 B
Bash
11 lines
437 B
Bash
#!/bin/bash
|
|
|
|
# Tell git to fix whitespace errors automatically
|
|
git config apply.whitespace fix
|
|
|
|
# Set up useful aliases:
|
|
git config alias.wsfix "! git diff HEAD >P.diff && git apply -R P.diff && git apply --whitespace=fix P.diff && rm P.diff"
|
|
git config alias.wsfixi "! git diff --cached >P.diff && git apply --cached -R P.diff && git apply --cached --whitespace=fix P.diff && rm P.diff"
|
|
|
|
# Copy hooks:
|
|
cp scripts/githooks/* .git/hooks/
|