A cute little git wrapper.
A cute little git wrapper.
(changed-files {:keys [git] :as config} head tail)
Given a pair of refs, enumerate the changed status of the repo between those refs.
Given a pair of refs, enumerate the changed status of the repo between those refs.
(current-branch {:keys [git] :as config})
Fetches the name of the current git branch using the configured git
.
Fetches the name of the current git branch using the configured `git`.
(describe {:keys [git] :as config})
Uses git-describe to parse the status of the repository.
Using the configured git
and describe-pattern
to parse the output.
Returns a map {:tag, :ahead, :ahead?, :ref, :ref-short, :dirty?}
if the pattern matches, otherwise returns the empty map.
Uses git-describe to parse the status of the repository. Using the configured `git` and `describe-pattern` to parse the output. Returns a map `{:tag, :ahead, :ahead?, :ref, :ref-short, :dirty?}` if the pattern matches, otherwise returns the empty map.
(ensure-pattern x)
Given a string, compiles it to a j.u.Pattern.
Given a string, compiles it to a j.u.Pattern.
(let-groups [bindings m] & body)
Let for binding groups out of a j.u.r.Pattern j.u.r.Matcher.
Let for binding groups out of a j.u.r.Pattern j.u.r.Matcher.
(ref-message {:keys [git] :as config} ref-or-sha)
Fetches the message of the ref-or-sha
from git-log, using the configured git
.
Fetches the message of the `ref-or-sha` from git-log, using the configured `git`.
(ref-ts {:keys [git] :as config} ref-or-sha)
Fetches the timestamp of the ref-or-sha
from git-log, using the configured git
.
Fetches the timestamp of the `ref-or-sha` from git-log, using the configured `git`.
(resolve-ref {:keys [git] :as config} ref)
Fetches the git ref of ref
, being a tag or ref name using the configured git
.
Fetches the git ref of `ref`, being a tag or ref name using the configured `git`.
(status config)
Fetch the current git status, augmenting #'describe
's output
with the message and timestamp of the last commit, if the repository
isn't dirty.
Fetch the current git status, augmenting `#'describe`'s output with the message and timestamp of the last commit, if the repository isn't dirty.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close