git.fiddlerwoaroof.com
Browse code

Add current-repository porcelain

Ed Langley authored on 06/05/2019 06:38:48
Showing 2 changed files
... ...
@@ -9,4 +9,4 @@
9 9
 
10 10
 (defpackage :git
11 11
   (:use)
12
-  (:export #:show #:branch #:branches #:commit-parents #:in-repository))
13 12
\ No newline at end of file
13
+  (:export #:show #:branch #:branches #:commit-parents #:in-repository #:current-repository))
... ...
@@ -9,6 +9,9 @@
9 9
   (setf *git-repository*
10 10
         (truename root)))
11 11
 
12
+(defun git:show-repository ()
13
+  *git-repository*)
14
+
12 15
 (defun git:show (object)
13 16
   (babel:octets-to-string
14 17
    (extract-object (repository *git-repository*)