From 2aaa07f3a4ff3f4e02095bdc90b43b6d5661e713 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 16 Jul 2026 13:19:21 -1000 Subject: Convert the commit-links filter to Lua Lua is becoming the one language for the filter extensions, and this was the last shell filter. --- extensions/commit-links.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 extensions/commit-links.sh (limited to 'extensions/commit-links.sh') diff --git a/extensions/commit-links.sh b/extensions/commit-links.sh deleted file mode 100755 index 796ac30..0000000 --- a/extensions/commit-links.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# This script can be used to generate links in commit messages. -# -# To use this script, refer to this file with either the commit-filter or the -# repo.commit-filter options in cgitrc. -# -# The following environment variables can be used to retrieve the configuration -# of the repository for which this script is called: -# CGIT_REPO_URL ( = repo.url setting ) -# CGIT_REPO_NAME ( = repo.name setting ) -# CGIT_REPO_PATH ( = repo.path setting ) -# CGIT_REPO_OWNER ( = repo.owner setting ) -# CGIT_REPO_DEFBRANCH ( = repo.defbranch setting ) -# CGIT_REPO_SECTION ( = section setting ) -# CGIT_REPO_CLONE_URL ( = repo.clone-url setting ) -# - -regex='' - -# This expression generates links to commits referenced by their SHA1. -regex=$regex' -s|\b([0-9a-fA-F]{7,64})\b|\1|g' - -# This expression generates links to a fictional bugtracker. -regex=$regex' -s|#([0-9]+)\b|#\1|g' - -sed -re "$regex" -- cgit v2.8.0