aboutsummaryrefslogtreecommitdiff
path: root/modules/git/git-shell-commands/section
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2025-11-15 00:22:34 +0100
committerMax Audron <audron@cocaine.farm>2025-11-15 00:22:34 +0100
commit53d246c2adda06165b21c55a2d5a4dc867b66994 (patch)
tree133084ec0d492f5bb731214a91f744492cb050a4 /modules/git/git-shell-commands/section
parentadd readme (diff)
add git shell scripts
Diffstat (limited to '')
-rwxr-xr-xmodules/git/git-shell-commands/section6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/git/git-shell-commands/section b/modules/git/git-shell-commands/section
new file mode 100755
index 0000000..b1a998e
--- /dev/null
+++ b/modules/git/git-shell-commands/section
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+if [ -f "$1/config" ]; then
+ cd "$1"
+ git config cgit.section "$2"
+fi