From bb83945623fa6cef6c195c98a7776f45974c006c Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 17 Oct 2021 15:39:52 -0700 Subject: move work-tree to /, delete mods files, addd cfgL --- home/xyz/.local/bin/gita | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 home/xyz/.local/bin/gita (limited to 'home/xyz/.local/bin/gita') diff --git a/home/xyz/.local/bin/gita b/home/xyz/.local/bin/gita new file mode 100755 index 00000000..a3d0dbc9 --- /dev/null +++ b/home/xyz/.local/bin/gita @@ -0,0 +1,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 -- cgit v1.2.3-70-g09d2