git.fiddlerwoaroof.com
Browse code

tweak porcelain

Ed Langley authored on 03/05/2019 07:40:53
Showing 2 changed files
... ...
@@ -279,6 +279,10 @@
279 279
               result))
280 280
       )))
281 281
 
282
+(defun sp-ob (ob-string)
283
+  (partition #\null
284
+             ob-string))
285
+
282 286
 (defun split-object (object-data)
283 287
   (destructuring-bind (head tail)
284 288
       (partition 0
... ...
@@ -6,6 +6,9 @@
6 6
   "The encoding to use when parsing git objects")
7 7
 
8 8
 (defun git-show (object)
9
-  (babel:octets-to-string (extract-object (repository *git-repository*)
10
-                                          object)
11
-                          :encoding *git-encoding*))
9
+  (elt (sp-ob
10
+        (babel:octets-to-string
11
+         (extract-object (repository *git-repository*)
12
+                         object)
13
+         :encoding *git-encoding*))
14
+       1))