aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-07-26 00:43:34 +0300
committerAlexander_Kabui2024-07-26 00:43:34 +0300
commitc5df803f4fc46db9813076f4e27c0dac697581a0 (patch)
tree1a173874705743ea40c379d0ea60b9c85c740523
parent846ab8bf5ae9e16daed6f432d0a4abfa100bd2cd (diff)
downloadgn-guile-c5df803f4fc46db9813076f4e27c0dac697581a0.tar.gz
Add git util procedures
-rw-r--r--web/view/markdown.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/view/markdown.scm b/web/view/markdown.scm
index fac9a98..4c5f658 100644
--- a/web/view/markdown.scm
+++ b/web/view/markdown.scm
@@ -70,3 +70,15 @@
("hash" . "commit hash here"))
) (throw 'file-error (string-append "the file path " abs_path " does not exists")))
))
+
+
+
+(define (git-invoke repo-path . args)
+ (apply system* "git" "-C" repo-path args))
+
+
+(define (is-repo? repo-path)
+ (let ((data (git-invoke repo-path "rev-parse")) )
+ (zero? data)
+ )
+ )