Liking cljdoc? Tell your friends :D

cljdoc.git-repo


->repoclj

(->repo d)
source

clonable?clj

(clonable? uri)

A rough heuristic to evaluate whether a repository can be cloned.

This currently only really checks HTTP protocol remotes, for proper SSH support we'd need to also call setTransportConfigCallback similar as it's done in clone.

A rough heuristic to evaluate whether a repository can be cloned.

This currently only really checks HTTP protocol remotes, for proper SSH support we'd need to
also call `setTransportConfigCallback` similar as it's done in [[clone]].
sourceraw docstring

cloneclj

(clone uri target-dir)
source

exists?clj

(exists? g rev)
source

find-tagclj

(find-tag repo tag-str)
source

git-checkout-repoclj

(git-checkout-repo repo rev)
source

git-tag-namesclj

(git-tag-names repo)
source

jsch-session-factoryclj

A session-factory for use with JGit to access private repositories using SSH private key authentication.

This will look at ~/.ssh/config to find the right private key to use or default to ~/.ssh/id_rsa.

Keys MUST BE IN PEM FORMAT (ssh-keygen -m PEM) or the authentication will fail with something like " invalid privatekey: [B@370d39ee".

Read https://security.stackexchange.com/questions/143114 for details.

A session-factory for use with JGit to access private
repositories using SSH private key authentication.

This will look at `~/.ssh/config` to find the right
private key to use or default to `~/.ssh/id_rsa`.

Keys MUST BE IN PEM FORMAT (ssh-keygen -m PEM) or the
authentication will fail with something like
" invalid privatekey: [B@370d39ee".

Read https://security.stackexchange.com/questions/143114 for details.
sourceraw docstring

ls-filesclj

(ls-files g rev)

Return a seq of maps {:path 'path-of-file :obj-loader 'ObjectLoader} for files in the git repository at the given revision rev. ObjectLoader instances can be consumed with slurp, input-stream, etc.

Files in submodules are skipped.

Return a seq of maps {:path 'path-of-file :obj-loader 'ObjectLoader}
for files in the git repository at the given revision `rev`.
ObjectLoader instances can be consumed with slurp, input-stream, etc.

Files in submodules are skipped.
sourceraw docstring

patch-level-infoclj

(patch-level-info repo)
source

path-sha-pairsclj

(path-sha-pairs files)
source

read-cljdoc-configclj

(read-cljdoc-config repo rev)
source

read-originclj

(read-origin git-repo)
source

slurp-file-atclj

(slurp-file-at g rev f)

Read a file f in the Git repository g at revision rev.

If the file cannot be found, return nil.

Read a file `f` in the Git repository `g` at revision `rev`.

If the file cannot be found, return `nil`.
sourceraw docstring

version-tagclj

(version-tag g version-str)
source

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

× close