summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/gita
blob: 9e44576181d9f4ce717493223090eac81b55adb1 (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 cls f; do
	case $f in
		l|s) cmd="cfg -$f";;
		\?) exit 1;;
	esac
done
shift $((OPTIND-1))

mes="${1:-update}"

$cmd add -u
$cmd commit -m "$mes"
$cmd push
pan class="hl opt">(seq "$OPTARG"); do tz_to="$(tzselect),$tz_to" done;; T) tz_to="$OPTARG,$tz_to";; \?) exit 1;; esac done shift $((OPTIND-1))