From 3c588cb48d4d3026c8a00faa8732c0655328e63c Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 2 Oct 2026 10:33:53 +0200 Subject: * MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automated-commit-by: commitall Signed-off-by: Robert Günzler --- vcs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'vcs') diff --git a/vcs b/vcs index c1deea8..80f831b 100755 --- a/vcs +++ b/vcs @@ -1,6 +1,7 @@ #!/bin/sh set -eu [ -n "${DEBUG:-}" ] && set -x +: "${FORCE:=}" case "${1:-status}" in @@ -12,7 +13,15 @@ commit) shift # prevent auto-commit of non-web files - if git ls-files -md | grep -qvE -e .htm$ -e .html$ -e .md$; then + non_web=$(git ls-files -md | grep -vE \ + -e .htm$ \ + -e .html$ \ + -e .md$ \ + -e .jpg$ \ + -e .css$) + if [ ! $? ] && [ -n "$FORCE" ]; then + echo not committing non-web files: >&2 + echo "$non_web" exit 1 fi -- cgit 1.4.1