Liking cljdoc? Tell your friends :D

clojure.tools.gitlibs

An API for retrieving and caching git repos and working trees.

The git url can be either an https url for anonymous checkout or an ssh url for private access. revs can be either full sha, prefix sha, or tag name.

An API for retrieving and caching git repos and working trees.

The git url can be either an https url for anonymous checkout or an ssh url
for private access. revs can be either full sha, prefix sha, or tag name.
raw docstring

cache-dirclj

(cache-dir)

Return the root gitlibs cache directory. By default ~/.gitlibs or override by setting the environment variable GITLIBS.

Return the root gitlibs cache directory. By default ~/.gitlibs or
override by setting the environment variable GITLIBS.
sourceraw docstring

commit-shaclj

(commit-sha url rev)

Returns unpeeled full commit sha, given a rev (which may be tag, branch, etc)

Returns unpeeled full commit sha, given a rev (which may be tag, branch, etc)
sourceraw docstring

descendantclj

(descendant url revs)

Returns rev in git url which is a descendant of all other revs, or nil if no such relationship can be established.

Returns rev in git url which is a descendant of all other revs,
or nil if no such relationship can be established.
sourceraw docstring

object-typeclj

(object-type url rev)

Takes a git url and rev, and returns the object type, one of :tag :tree :commit or :blob, or nil if not known or ambiguous.

Takes a git url and rev, and returns the object type, one of :tag :tree
:commit or :blob, or nil if not known or ambiguous.
sourceraw docstring

procureclj

(procure url lib rev)

Procure a working tree at rev for the git url representing the library lib, returns the directory path. lib is a qualified symbol where the qualifier is a controlled or conveyed identity, or nil if rev is unknown.

Procure a working tree at rev for the git url representing the library lib,
returns the directory path. lib is a qualified symbol where the qualifier is a
controlled or conveyed identity, or nil if rev is unknown.
sourceraw docstring

resolveclj

(resolve url rev)

Takes a git url and a rev, and returns the full commit sha or nil if can't resolve. rev may be a partial sha, full sha, or tag name.

Takes a git url and a rev, and returns the full commit sha or nil if can't
resolve. rev may be a partial sha, full sha, or tag name.
sourceraw docstring

tagsclj

(tags url)

Fetches, then returns coll of tags in git url

Fetches, then returns coll of tags in git url
sourceraw docstring

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

× close