File: setupgit.sh

package info (click to toggle)
brewtarget 4.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 35,468 kB
  • sloc: cpp: 56,958; xml: 19,031; python: 1,266; sh: 183; makefile: 11
file content (11 lines) | stat: -rwxr-xr-x 314 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

echo ""
echo "Setting up brewtarget git preferences"
echo ""

# Enforce indentation with spaces, not tabs.
git config --file .git/config core.whitespace tabwidth=3,tab-in-indent

# Enable the pre-commit hook that warns you about whitespace errors
cp .git/hooks/pre-commit.sample .git/hooks/pre-commit