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

cmd='git'

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

mes="${1:-refactor}"

$cmd add -u
$cmd commit -m "$mes"
$cmd push