pallet.crate.git documentation

Crate to install and use git.

branch?

fn

[checkout-dir & {:keys [user], :as options}]

Which branch is checkout-dir currently using?

checkout

fn

[branch & {:keys [remote-branch]}]

Checkout a branch. An optional :remote-branch may be specified, which is used to create the branch if it doesn't already exist.

clone

fn

[repo-uri & {:keys [checkout-dir args], :or {checkout-dir (repo-name repo-uri)}, :as options}]

Clone a repository from repo-uri, a uri string. By default the :checkout-dir option is found from the repo-uri. :args can be used to pass a sequence of arbitrary arguments to the clone command.

install-git

fn

[]

Install git

pull

fn

[& {:keys [branch remote args], :as options}]

Pull :branch from the specified :remote name. The branch and remote are optional