summaryrefslogtreecommitdiff
path: root/unignore
blob: 76097acd432dda151c337b0523e30774a7eb9e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash

if [ $# -ne 1 ]; then
    echo "usage: ignore <name>"
    exit 1
fi

USER="compromyse"

base_dir="$HOME"
repo="${base_dir}/$1"

case $repo in
    *\.git)
	;;
    *)
	repo="${repo}.git"
	;;
esac

if [ ! -d "$repo" ]; then
    echo "$repo does not exist"
    exit 1
fi

cd $repo
git config cgit.ignore 0