summaryrefslogtreecommitdiff
path: root/config/services/git/shell-commands/repo/src/set_description_command.sh
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2026-01-25 20:19:01 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2026-01-25 20:48:23 +0100
commitd00f8fb1791e6f412d4a8898b53cdbe3cac20daa (patch)
tree9d493ea1c2af4721be7a27f72470dcb818fd2c47 /config/services/git/shell-commands/repo/src/set_description_command.sh
parentfbb1709e1504280ca5576f91d85bb7f5dfeff37a (diff)
git: add shell-commands
Diffstat (limited to 'config/services/git/shell-commands/repo/src/set_description_command.sh')
-rw-r--r--config/services/git/shell-commands/repo/src/set_description_command.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/services/git/shell-commands/repo/src/set_description_command.sh b/config/services/git/shell-commands/repo/src/set_description_command.sh
new file mode 100644
index 0000000..b6b40f0
--- /dev/null
+++ b/config/services/git/shell-commands/repo/src/set_description_command.sh
@@ -0,0 +1,14 @@
+repo=$(realpath "${args[repo]}")
+
+echo "$repo"
+check-realpath "$repo"
+check-git-repository "$repo"
+echo "Old description:"
+show-descr "$repo"
+echo "New description:"
+echo -n "| "
+read descr
+echo
+echo "$descr" > "$repo"/description
+show-repo "$repo"
+