Liking cljdoc? Tell your friends :D

cuddlefish.core

A cute little git wrapper.

A cute little git wrapper.
raw docstring

changed-filesclj

(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.
sourceraw docstring

current-branchclj

(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`.
sourceraw docstring

describeclj

(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.
sourceraw docstring

ensure-patternclj

(ensure-pattern x)

Given a string, compiles it to a j.u.Pattern.

Given a string, compiles it to a j.u.Pattern.
sourceraw docstring

git-describe-patternclj

source

let-groupscljmacro

(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.
sourceraw docstring

ref-messageclj

(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`.
sourceraw docstring

ref-tsclj

(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`.
sourceraw docstring

resolve-refclj

(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`.
sourceraw docstring

statusclj

(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.
sourceraw docstring

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

× close