From dd78faaf40862bd1552ec36c41374b527f747284 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 23 Feb 2024 03:08:52 -0800 Subject: Reorganize shell scripts into sh dir, consider in the future fsh will have different kinds of files --- sh/gita | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 sh/gita (limited to 'sh/gita') diff --git a/sh/gita b/sh/gita new file mode 100755 index 0000000..ee00306 --- /dev/null +++ b/sh/gita @@ -0,0 +1,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 -- cgit v1.2.3-70-g09d2