Liking cljdoc? Tell your friends :D
Clojure only.

lucid.git.interop.dir-cache


process-entryclj

(process-entry entry)

testing dir-cache and dir-cache-entry

(def path (str "/tmp/gita/" (java.util.UUID/randomUUID))) (def tempdir (io/file path))

(git-status-call tempdir) (spit (str path "/hello.txt") "hello") (-> (git-add-call tempdir) (object/to-data)) => (contains-in {"hello.txt" set?}) ;;#{:smudged :merged}

(-> (git-add-call tempdir) (.getEntry 0) (object/to-data)) => (contains {:merged? true, :file-mode "100644", :stage 0, :object-id string? :last-modified number? :length number?, :path-string "hello.txt" :creation-time 0})

testing dir-cache and dir-cache-entry

(def path (str "/tmp/gita/" (java.util.UUID/randomUUID)))
(def tempdir (io/file path))

(git-status-call tempdir)
(spit (str path "/hello.txt") "hello")
(-> (git-add-call tempdir)
    (object/to-data))
=> (contains-in {"hello.txt" set?}) ;;#{:smudged :merged}

(-> (git-add-call tempdir)
    (.getEntry 0)
    (object/to-data))
=> (contains {:merged? true,
              :file-mode "100644",
              :stage 0,
              :object-id string?
              :last-modified number?
              :length number?,
              :path-string "hello.txt"
              :creation-time 0})
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close