Commit ca06a99f authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add NO_COMMIT envvar to vim spell file update script

parent 734911d3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -21,7 +21,9 @@ done

[ ${#FILES[@]} -gt 0 ] || exit 0

if [ -d "$GIT_DIR"/rebase-merge ]; then
if [[ -v NO_COMMIT ]]; then
	echo >&2 "Not committing changes"
elif [ -d "$GIT_DIR"/rebase-merge ]; then
	git add "${FILES[@]}"
	git rebase --continue
elif [ -e "$GIT_DIR"/MERGE_MSG ]; then