From 659af74a7b576ea61f1b5d611f4aec8ace0104c2 Mon Sep 17 00:00:00 2001 From: Matthias Lucas Jaros Date: Sun, 30 Nov 2025 12:27:02 +0100 Subject: Comments --- src/git-run | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/git-run') diff --git a/src/git-run b/src/git-run index 0366e8f..7d70ef8 100755 --- a/src/git-run +++ b/src/git-run @@ -1,13 +1,18 @@ #!/usr/bin/env fish -# load environment +# load common environment source (status dirname)/env -# global variables set gitCommand set repoDir set currentUser (whoami) +### +### +### functions +### +### + function log --on-event log echo "$(date -Is): $argv[1..2] user=$currentUser $argv[3..] ip=$SSH_CONNECTION" >> $_LOG end @@ -62,6 +67,12 @@ function verifyPermissions end end +### +### +### main +### +### + # redirect stdout/stderr to file, no information to potential attacker begin parseCommand $argv; or exit $status -- cgit v1.3.1