new script to minimize git checkout memory usage
[feisty_meow.git] / scripts / rev_control / git_scruncher.sh
1 #!/bin/bash
2
3 # check for whether we see a .git folder.
4 if [ ! -d ".git" ]; then
5   echo This script needs to run in the directory where a git repository lives,
6   echo but we do not see a .git directory here.
7   exit 1
8 fi
9
10 # makes git checkouts not be as intensive on the server.
11 git config --global pack.windowMemory "100m"
12 git config --global pack.SizeLimit "100m" 
13 git config --global pack.threads "1"
14
15