From d00f8fb1791e6f412d4a8898b53cdbe3cac20daa Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 25 Jan 2026 20:19:01 +0100 Subject: git: add shell-commands --- config/services/git/shell-commands/repo/src/lib/is-git-dir.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 config/services/git/shell-commands/repo/src/lib/is-git-dir.sh (limited to 'config/services/git/shell-commands/repo/src/lib/is-git-dir.sh') diff --git a/config/services/git/shell-commands/repo/src/lib/is-git-dir.sh b/config/services/git/shell-commands/repo/src/lib/is-git-dir.sh new file mode 100644 index 0000000..d94f2ba --- /dev/null +++ b/config/services/git/shell-commands/repo/src/lib/is-git-dir.sh @@ -0,0 +1,3 @@ +is-git-dir() { + git rev-parse --resolve-git-dir "$1" 2>/dev/null +} -- cgit v1.2.3