summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-11-22 14:22:42 +0100
committerTor Andersson <tor.andersson@artifex.com>2013-11-26 08:42:38 +0100
commit89cb2e5e2b20ddac6721e8a945d9d75f4287444e (patch)
tree814772e6ee0b738684f06a66cbbf81a1828219af /scripts
parente37c130bced9c040442d168174305a78756576fb (diff)
downloadmupdf-89cb2e5e2b20ddac6721e8a945d9d75f4287444e.tar.xz
Add Objective-C files to git's list of files to use tab indents.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gitsetup.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/gitsetup.sh b/scripts/gitsetup.sh
index 10f2321e..1c932212 100644
--- a/scripts/gitsetup.sh
+++ b/scripts/gitsetup.sh
@@ -1,5 +1,8 @@
#!/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"