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

cmd='git'

while getopts lc f; do
	case $f in
		l) cmd='cfgl';;
		c) cmd='cfgc';;
		\?) exit 1;;
	esac
done
shift $((OPTIND-1))

mes="${1:-refactor}"

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