Skip to content

Commit

Permalink
chore: cleanup porcelain.lisp
Browse files Browse the repository at this point in the history
  • Loading branch information
fiddlerwoaroof committed Oct 18, 2024
1 parent d97a6c1 commit 1fcaf44
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions porcelain.lisp
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
(in-package :fwoar.cl-git)

;; TODO: Update the code so this uses an object instead of a path.
(defvar *git-repository*)
(setf (documentation '*git-repository* 'variable)
"The git repository path for porcelain commands to operate on.")

(defvar *git-encoding* :utf-8
"The encoding to use when parsing git objects")

(defun co.fwoar.git:repository ()
*git-repository*)

(defun co.fwoar.git:in-repository (root)
(setf *git-repository*
(ensure-repository
(truename root))))

(defun co.fwoar.git:repository ()
*git-repository*)

(defmacro co.fwoar.git:with-repository ((root) &body body)
`(let ((*git-repository* (ensure-repository ,root)))
,@body))
Expand Down

0 comments on commit 1fcaf44

Please sign in to comment.