summaryrefslogtreecommitdiff
path: root/sh/gita
blob: ee003061b3ad64fc6b4ba4082f8cab27f1cf8c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# note message string must come after options

cmd=git

while getopts ls f; do
	case $f in
		l|s) cmd="cfg -$f";;
		\?) exit 1;;
	esac
done
shift $((OPTIND-1))

mes="${1:-update}"

$cmd commit --all -m "$mes"
$cmd push