(abort & msg)
Print msg to standard err and exit with a value of 1.
Print msg to standard err and exit with a value of 1.
(any-commits?)
(any-commits? repo-dir)
return whether the repo has any commits in it
return whether the repo has any commits in it
(commit! msg)
(commit! repo-dir msg)
commit with message
commit with message
(prefix)
(prefix repo-dir)
return the prefix (dir path relative to toplevel git dir). When invoked from a subdirectory, show the path of the current directory relative to the top-level directory.
return the prefix (dir path relative to toplevel git dir). When invoked from a subdirectory, show the path of the current directory relative to the top-level directory.
(pwd)
return working dir of the JVM (cannot be changed once JVM is started)
return working dir of the JVM (cannot be changed once JVM is started)
(toplevel)
(toplevel repo-dir)
return the toplevel path as a string on the local filesystem corresponding to the dir containing the .git dir
return the toplevel path as a string on the local filesystem corresponding to the dir containing the .git dir
(working-copy-description)
(working-copy-description repo-dir
&
{:keys [prefix min-sha-length]
:or {prefix *prefix*
min-sha-length *min-sha-length*}})
return the git working copy description as [base distance sha dirty?]
return the git working copy description as [base distance sha dirty?]
(working-copy-state &
{:keys [prefix min-sha-length]
:or {prefix *prefix* min-sha-length *min-sha-length*}})
return the git working copy state with :status and :describe keys
return the git working copy state with :status and :describe keys
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close