diff options
author | Alexander_Kabui | 2024-07-26 00:43:34 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-07-26 00:43:34 +0300 |
commit | c5df803f4fc46db9813076f4e27c0dac697581a0 (patch) | |
tree | 1a173874705743ea40c379d0ea60b9c85c740523 /web/view | |
parent | 846ab8bf5ae9e16daed6f432d0a4abfa100bd2cd (diff) | |
download | gn-guile-c5df803f4fc46db9813076f4e27c0dac697581a0.tar.gz |
Add git util procedures
Diffstat (limited to 'web/view')
-rw-r--r-- | web/view/markdown.scm | 12 |
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) + ) + ) |