|
@@ -7,14 +7,13 @@
|
7
|
7
|
(defun last-commit ()
|
8
|
8
|
"Retrieve the SHA1 hash of the most recent blog commit."
|
9
|
9
|
(multiple-value-bind (pid stdout stderr)
|
10
|
|
- (iolib.os:with-current-directory "/home/redline/projects/coleslaw/"
|
|
10
|
+ (with-current-directory "/home/redline/projects/coleslaw/"
|
11
|
11
|
(iolib.os:run-program "git" '("log" "-n 1")))
|
12
|
12
|
(cl-ppcre:scan-to-strings "[0-9a-f]{40}" stdout)))
|
13
|
13
|
|
14
|
14
|
(defun last-published ()
|
15
|
15
|
"Retrieve the SHA1 hash of the most recent published blog."
|
16
|
|
- (with-open-file (in "/home/redline/.coleslaw"
|
17
|
|
- :if-does-not-exist :create)
|
|
16
|
+ (with-open-file (in "/home/redline/.coleslaw" :if-does-not-exist :create)
|
18
|
17
|
(read-line in nil)))
|
19
|
18
|
|
20
|
19
|
(defun (setf last-published) (new-val)
|