aboutsummaryrefslogtreecommitdiff
path: root/modules/git/git-shell-commands/readme
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/git-shell-commands/readme')
-rwxr-xr-xmodules/git/git-shell-commands/readme16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/git/git-shell-commands/readme b/modules/git/git-shell-commands/readme
new file mode 100755
index 0000000..b3c34f7
--- /dev/null
+++ b/modules/git/git-shell-commands/readme
@@ -0,0 +1,16 @@
+#!/usr/bin/env sh
+
+if [ -f "$1/config" ]; then
+ cd "$1" || exit
+ case "$2" in
+ "md")
+ git config cgit.readme "main:README.md"
+ ;;
+ "adoc")
+ git config cgit.readme "main:README.adoc"
+ ;;
+ *)
+ echo "no idea what you're talking about. md | adoc"
+ ;;
+ esac
+fi