(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]].
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.
(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.
(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`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close