From: alex Date: Fri, 24 Mar 2023 04:58:48 +0000 (-0700) Subject: fix: EDITOR not correctly being extracted from env X-Git-Tag: v1.0.4^0 X-Git-Url: http://git.infiniteadaptability.org/?a=commitdiff_plain;h=3c384f024d714918c5285e578afde313215d1e45;p=git-extra fix: EDITOR not correctly being extracted from env Renamed multiple overwritable variables to be prefixed by GIT_EXTRA_* --- diff --git a/README.md b/README similarity index 100% rename from README.md rename to README diff --git a/git-extra b/git-extra index adb3e96..90c1c9f 100644 --- a/git-extra +++ b/git-extra @@ -4,10 +4,10 @@ set -euo pipefail # Option variables LOG_LEVEL=default -BRANCH=extra -EDITOR= -MESSAGE= -TEMPLATE= +BRANCH=${GIT_EXTRA_BRANCH:-extra} +EDITOR=${EDITOR:-} +MESSAGE=${GIT_EXTRA_MESSAGE:-updated using git-extra} +TEMPLATE=${GIT_EXTRA_TEMPLATE:-} # helper variables LONG_OUTPUT=false @@ -192,7 +192,7 @@ add_to_index() { git update-index --add --cacheinfo 100644 "$hash" "$2" tree_hash=$(git write-tree) - commit_hash=$(git commit-tree -m "${MESSAGE:-updated using git-extra}" -p "$PREV_COMMIT" "$tree_hash") + commit_hash=$(git commit-tree -m "$MESSAGE" -p "$PREV_COMMIT" "$tree_hash") git update-ref "refs/heads/$BRANCH" "$commit_hash" diff --git a/manifest.scm b/manifest.scm new file mode 100644 index 0000000..ca1ff2e --- /dev/null +++ b/manifest.scm @@ -0,0 +1,6 @@ +(specifications->manifest (list "bash" + "coreutils" + "debianutils" + "grep" + "make" + "shellcheck"))