git_cli v0.2.3 Git

Summary

Functions

Run git add in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as add/2 but raises an exception on error

Run git add--interactive in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as add__interactive/2 but raises an exception on error

Run git am in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as am/2 but raises an exception on error

Run git annotate in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as annotate/2 but raises an exception on error

Run git archimport in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as archimport/2 but raises an exception on error

Run git archive in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as archive/2 but raises an exception on error

Run git bisect in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as bisect/2 but raises an exception on error

Run git bisect--helper in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as bisect__helper/2 but raises an exception on error

Run git blame in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as blame/2 but raises an exception on error

Run git branch in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as branch/2 but raises an exception on error

Run git bundle in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as bundle/2 but raises an exception on error

Run git cat-file in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as cat_file/2 but raises an exception on error

Run git check-attr in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as check_attr/2 but raises an exception on error

Run git check-ignore in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as check_ignore/2 but raises an exception on error

Run git check-mailmap in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as check_mailmap/2 but raises an exception on error

Run git check-ref-format in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as check_ref_format/2 but raises an exception on error

Run git checkout in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as checkout/2 but raises an exception on error

Run git checkout-index in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as checkout_index/2 but raises an exception on error

Run git cherry in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as cherry/2 but raises an exception on error

Run git cherry-pick in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as cherry_pick/2 but raises an exception on error

Run git citool in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as citool/2 but raises an exception on error

Run git clean in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as clean/2 but raises an exception on error

Clones the repository. The first argument can be url or [url, path]. Returns {:ok, repository} on success and {:error, reason} on failure

Same as clone/1 but raise an exception on failure

Run git column in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as column/2 but raises an exception on error

Run git commit in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as commit/2 but raises an exception on error

Run git commit-tree in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as commit_tree/2 but raises an exception on error

Run git config in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as config/2 but raises an exception on error

Run git count-objects in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as count_objects/2 but raises an exception on error

Run git credential in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as credential/2 but raises an exception on error

Run git credential-cache in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as credential_cache/2 but raises an exception on error

Run git credential-cache--daemon in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Run git credential-gnome-keyring in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Run git credential-store in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as credential_store/2 but raises an exception on error

Run git cvsexportcommit in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as cvsexportcommit/2 but raises an exception on error

Run git cvsimport in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as cvsimport/2 but raises an exception on error

Run git cvsserver in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as cvsserver/2 but raises an exception on error

Run git daemon in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as daemon/2 but raises an exception on error

Run git describe in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as describe/2 but raises an exception on error

Run git diff in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as diff/2 but raises an exception on error

Run git diff-files in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as diff_files/2 but raises an exception on error

Run git diff-index in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as diff_index/2 but raises an exception on error

Run git diff-tree in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as diff_tree/2 but raises an exception on error

Run git difftool in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as difftool/2 but raises an exception on error

Run git difftool--helper in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as difftool__helper/2 but raises an exception on error

Execute the git command in the given repository

Run git fast-export in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as fast_export/2 but raises an exception on error

Run git fast-import in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as fast_import/2 but raises an exception on error

Run git fetch in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as fetch/2 but raises an exception on error

Run git fetch-pack in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as fetch_pack/2 but raises an exception on error

Run git filter-branch in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as filter_branch/2 but raises an exception on error

Run git fmt-merge-msg in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as fmt_merge_msg/2 but raises an exception on error

Run git for-each-ref in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as for_each_ref/2 but raises an exception on error

Run git format-patch in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as format_patch/2 but raises an exception on error

Run git fsck in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as fsck/2 but raises an exception on error

Run git fsck-objects in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as fsck_objects/2 but raises an exception on error

Run git gc in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as gc/2 but raises an exception on error

Run git get-tar-commit-id in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as get_tar_commit_id/2 but raises an exception on error

Run git grep in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as grep/2 but raises an exception on error

Run git gui in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as gui/2 but raises an exception on error

Run git gui--askpass in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as gui__askpass/2 but raises an exception on error

Run git hash-object in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as hash_object/2 but raises an exception on error

Run git help in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as help/2 but raises an exception on error

Run git http-backend in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as http_backend/2 but raises an exception on error

Run git http-fetch in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as http_fetch/2 but raises an exception on error

Run git http-push in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as http_push/2 but raises an exception on error

Run git imap-send in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as imap_send/2 but raises an exception on error

Run git index-pack in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as index_pack/2 but raises an exception on error

Run git init in the given directory Returns {:ok, repository} on success and {:error, reason} on failure

Run git init-db in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as init_db/2 but raises an exception on error

Run git instaweb in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as instaweb/2 but raises an exception on error

Run git interpret-trailers in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as interpret_trailers/2 but raises an exception on error

Run git log in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as log/2 but raises an exception on error

Run git ls-files in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as ls_files/2 but raises an exception on error

Run git ls-remote in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as ls_remote/2 but raises an exception on error

Run git ls-tree in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as ls_tree/2 but raises an exception on error

Run git mailinfo in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as mailinfo/2 but raises an exception on error

Run git mailsplit in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as mailsplit/2 but raises an exception on error

Run git merge in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as merge/2 but raises an exception on error

Run git merge-base in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as merge_base/2 but raises an exception on error

Run git merge-file in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as merge_file/2 but raises an exception on error

Run git merge-index in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as merge_index/2 but raises an exception on error

Run git merge-octopus in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as merge_octopus/2 but raises an exception on error

Run git merge-one-file in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as merge_one_file/2 but raises an exception on error

Run git merge-ours in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as merge_ours/2 but raises an exception on error

Run git merge-recursive in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as merge_recursive/2 but raises an exception on error

Run git merge-resolve in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as merge_resolve/2 but raises an exception on error

Run git merge-subtree in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as merge_subtree/2 but raises an exception on error

Run git merge-tree in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as merge_tree/2 but raises an exception on error

Run git mergetool in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as mergetool/2 but raises an exception on error

Run git mktag in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as mktag/2 but raises an exception on error

Run git mktree in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as mktree/2 but raises an exception on error

Run git mv in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as mv/2 but raises an exception on error

Run git name-rev in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as name_rev/2 but raises an exception on error

Return a Git.Repository struct with the specified or defaulted path. For use with an existing repo (when Git.init and Git.clone would not be appropriate)

Run git notes in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as notes/2 but raises an exception on error

Run git p4 in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as p4/2 but raises an exception on error

Run git pack-objects in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as pack_objects/2 but raises an exception on error

Run git pack-redundant in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as pack_redundant/2 but raises an exception on error

Run git pack-refs in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as pack_refs/2 but raises an exception on error

Run git patch-id in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as patch_id/2 but raises an exception on error

Run git prune in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as prune/2 but raises an exception on error

Run git prune-packed in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as prune_packed/2 but raises an exception on error

Run git pull in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as pull/2 but raises an exception on error

Run git push in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as push/2 but raises an exception on error

Run git quiltimport in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as quiltimport/2 but raises an exception on error

Run git read-tree in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as read_tree/2 but raises an exception on error

Run git rebase in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as rebase/2 but raises an exception on error

Run git receive-pack in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as receive_pack/2 but raises an exception on error

Run git reflog in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as reflog/2 but raises an exception on error

Run git relink in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as relink/2 but raises an exception on error

Run git remote in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as remote/2 but raises an exception on error

Run git remote-ext in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as remote_ext/2 but raises an exception on error

Run git remote-fd in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as remote_fd/2 but raises an exception on error

Run git remote-ftp in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as remote_ftp/2 but raises an exception on error

Run git remote-ftps in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as remote_ftps/2 but raises an exception on error

Run git remote-http in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as remote_http/2 but raises an exception on error

Run git remote-https in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as remote_https/2 but raises an exception on error

Run git remote-testsvn in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as remote_testsvn/2 but raises an exception on error

Run git repack in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as repack/2 but raises an exception on error

Run git replace in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as replace/2 but raises an exception on error

Run git request-pull in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as request_pull/2 but raises an exception on error

Run git rerere in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as rerere/2 but raises an exception on error

Run git reset in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as reset/2 but raises an exception on error

Run git rev-list in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as rev_list/2 but raises an exception on error

Run git rev-parse in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as rev_parse/2 but raises an exception on error

Run git revert in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as revert/2 but raises an exception on error

Run git rm in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as rm/2 but raises an exception on error

Run git send-email in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as send_email/2 but raises an exception on error

Run git send-pack in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as send_pack/2 but raises an exception on error

Run git sh-i18n--envsubst in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as sh_i18n__envsubst/2 but raises an exception on error

Run git shell in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as shell/2 but raises an exception on error

Run git shortlog in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as shortlog/2 but raises an exception on error

Run git show in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as show/2 but raises an exception on error

Run git show-branch in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as show_branch/2 but raises an exception on error

Run git show-index in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as show_index/2 but raises an exception on error

Run git show-ref in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as show_ref/2 but raises an exception on error

Run git stage in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as stage/2 but raises an exception on error

Run git stash in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as stash/2 but raises an exception on error

Run git status in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as status/2 but raises an exception on error

Run git stripspace in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as stripspace/2 but raises an exception on error

Run git submodule in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as submodule/2 but raises an exception on error

Run git subtree in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as subtree/2 but raises an exception on error

Run git svn in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as svn/2 but raises an exception on error

Run git symbolic-ref in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as symbolic_ref/2 but raises an exception on error

Run git tag in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as tag/2 but raises an exception on error

Run git unpack-file in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as unpack_file/2 but raises an exception on error

Run git unpack-objects in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as unpack_objects/2 but raises an exception on error

Run git update-index in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as update_index/2 but raises an exception on error

Run git update-ref in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as update_ref/2 but raises an exception on error

Run git update-server-info in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as update_server_info/2 but raises an exception on error

Run git upload-archive in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as upload_archive/2 but raises an exception on error

Run git upload-pack in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as upload_pack/2 but raises an exception on error

Run git var in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as var/2 but raises an exception on error

Run git verify-commit in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as verify_commit/2 but raises an exception on error

Run git verify-pack in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as verify_pack/2 but raises an exception on error

Run git verify-tag in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as verify_tag/2 but raises an exception on error

Run git web--browse in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as web__browse/2 but raises an exception on error

Run git whatchanged in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as whatchanged/2 but raises an exception on error

Run git worktree in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as worktree/2 but raises an exception on error

Run git write-tree in the given repository Returns {:ok, output} on success and {:error, reason} on failure

Same as write_tree/2 but raises an exception on error

Types

cli_arg :: bitstring | list
error :: {:error, Git.Error}
path :: bitstring

Functions

add(repository, args \\ [])

Specs

add(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git add in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

add!(repository, args \\ [])

Specs

add!(Git.Repository.t, cli_arg) :: binary

Same as add/2 but raises an exception on error.

add__interactive(repository, args \\ [])

Specs

add__interactive(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git add--interactive in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

add__interactive!(repository, args \\ [])

Specs

add__interactive!(Git.Repository.t, cli_arg) :: binary

Same as add__interactive/2 but raises an exception on error.

am(repository, args \\ [])

Specs

am(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git am in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

am!(repository, args \\ [])

Specs

am!(Git.Repository.t, cli_arg) :: binary

Same as am/2 but raises an exception on error.

annotate(repository, args \\ [])

Specs

annotate(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git annotate in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

annotate!(repository, args \\ [])

Specs

annotate!(Git.Repository.t, cli_arg) :: binary

Same as annotate/2 but raises an exception on error.

archimport(repository, args \\ [])

Specs

archimport(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git archimport in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

archimport!(repository, args \\ [])

Specs

archimport!(Git.Repository.t, cli_arg) :: binary

Same as archimport/2 but raises an exception on error.

archive(repository, args \\ [])

Specs

archive(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git archive in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

archive!(repository, args \\ [])

Specs

archive!(Git.Repository.t, cli_arg) :: binary

Same as archive/2 but raises an exception on error.

bisect(repository, args \\ [])

Specs

bisect(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git bisect in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

bisect!(repository, args \\ [])

Specs

bisect!(Git.Repository.t, cli_arg) :: binary

Same as bisect/2 but raises an exception on error.

bisect__helper(repository, args \\ [])

Specs

bisect__helper(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git bisect--helper in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

bisect__helper!(repository, args \\ [])

Specs

bisect__helper!(Git.Repository.t, cli_arg) :: binary

Same as bisect__helper/2 but raises an exception on error.

blame(repository, args \\ [])

Specs

blame(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git blame in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

blame!(repository, args \\ [])

Specs

blame!(Git.Repository.t, cli_arg) :: binary

Same as blame/2 but raises an exception on error.

branch(repository, args \\ [])

Specs

branch(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git branch in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

branch!(repository, args \\ [])

Specs

branch!(Git.Repository.t, cli_arg) :: binary

Same as branch/2 but raises an exception on error.

bundle(repository, args \\ [])

Specs

bundle(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git bundle in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

bundle!(repository, args \\ [])

Specs

bundle!(Git.Repository.t, cli_arg) :: binary

Same as bundle/2 but raises an exception on error.

cat_file(repository, args \\ [])

Specs

cat_file(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git cat-file in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

cat_file!(repository, args \\ [])

Specs

cat_file!(Git.Repository.t, cli_arg) :: binary

Same as cat_file/2 but raises an exception on error.

check_attr(repository, args \\ [])

Specs

check_attr(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git check-attr in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

check_attr!(repository, args \\ [])

Specs

check_attr!(Git.Repository.t, cli_arg) :: binary

Same as check_attr/2 but raises an exception on error.

check_ignore(repository, args \\ [])

Specs

check_ignore(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git check-ignore in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

check_ignore!(repository, args \\ [])

Specs

check_ignore!(Git.Repository.t, cli_arg) :: binary

Same as check_ignore/2 but raises an exception on error.

check_mailmap(repository, args \\ [])

Specs

check_mailmap(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git check-mailmap in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

check_mailmap!(repository, args \\ [])

Specs

check_mailmap!(Git.Repository.t, cli_arg) :: binary

Same as check_mailmap/2 but raises an exception on error.

check_ref_format(repository, args \\ [])

Specs

check_ref_format(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git check-ref-format in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

check_ref_format!(repository, args \\ [])

Specs

check_ref_format!(Git.Repository.t, cli_arg) :: binary

Same as check_ref_format/2 but raises an exception on error.

checkout(repository, args \\ [])

Specs

checkout(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git checkout in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

checkout!(repository, args \\ [])

Specs

checkout!(Git.Repository.t, cli_arg) :: binary

Same as checkout/2 but raises an exception on error.

checkout_index(repository, args \\ [])

Specs

checkout_index(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git checkout-index in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

checkout_index!(repository, args \\ [])

Specs

checkout_index!(Git.Repository.t, cli_arg) :: binary

Same as checkout_index/2 but raises an exception on error.

cherry(repository, args \\ [])

Specs

cherry(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git cherry in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

cherry!(repository, args \\ [])

Specs

cherry!(Git.Repository.t, cli_arg) :: binary

Same as cherry/2 but raises an exception on error.

cherry_pick(repository, args \\ [])

Specs

cherry_pick(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git cherry-pick in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

cherry_pick!(repository, args \\ [])

Specs

cherry_pick!(Git.Repository.t, cli_arg) :: binary

Same as cherry_pick/2 but raises an exception on error.

citool(repository, args \\ [])

Specs

citool(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git citool in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

citool!(repository, args \\ [])

Specs

citool!(Git.Repository.t, cli_arg) :: binary

Same as citool/2 but raises an exception on error.

clean(repository, args \\ [])

Specs

clean(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git clean in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

clean!(repository, args \\ [])

Specs

clean!(Git.Repository.t, cli_arg) :: binary

Same as clean/2 but raises an exception on error.

clone(args)

Specs

clone(cli_arg) :: {:ok, Git.Repository.t} | error

Clones the repository. The first argument can be url or [url, path]. Returns {:ok, repository} on success and {:error, reason} on failure.

clone!(args)

Specs

clone!(cli_arg) :: {:ok, Git.Repository.t} | error

Same as clone/1 but raise an exception on failure.

column(repository, args \\ [])

Specs

column(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git column in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

column!(repository, args \\ [])

Specs

column!(Git.Repository.t, cli_arg) :: binary

Same as column/2 but raises an exception on error.

commit(repository, args \\ [])

Specs

commit(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git commit in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

commit!(repository, args \\ [])

Specs

commit!(Git.Repository.t, cli_arg) :: binary

Same as commit/2 but raises an exception on error.

commit_tree(repository, args \\ [])

Specs

commit_tree(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git commit-tree in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

commit_tree!(repository, args \\ [])

Specs

commit_tree!(Git.Repository.t, cli_arg) :: binary

Same as commit_tree/2 but raises an exception on error.

config(repository, args \\ [])

Specs

config(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git config in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

config!(repository, args \\ [])

Specs

config!(Git.Repository.t, cli_arg) :: binary

Same as config/2 but raises an exception on error.

count_objects(repository, args \\ [])

Specs

count_objects(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git count-objects in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

count_objects!(repository, args \\ [])

Specs

count_objects!(Git.Repository.t, cli_arg) :: binary

Same as count_objects/2 but raises an exception on error.

credential(repository, args \\ [])

Specs

credential(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git credential in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

credential!(repository, args \\ [])

Specs

credential!(Git.Repository.t, cli_arg) :: binary

Same as credential/2 but raises an exception on error.

credential_cache(repository, args \\ [])

Specs

credential_cache(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git credential-cache in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

credential_cache!(repository, args \\ [])

Specs

credential_cache!(Git.Repository.t, cli_arg) :: binary

Same as credential_cache/2 but raises an exception on error.

credential_cache__daemon(repository, args \\ [])

Specs

credential_cache__daemon(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git credential-cache--daemon in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

credential_cache__daemon!(repository, args \\ [])

Specs

credential_cache__daemon!(Git.Repository.t, cli_arg) :: binary

Same as credential_cache__daemon/2 but raises an exception on error.

credential_gnome_keyring(repository, args \\ [])

Specs

credential_gnome_keyring(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git credential-gnome-keyring in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

credential_gnome_keyring!(repository, args \\ [])

Specs

credential_gnome_keyring!(Git.Repository.t, cli_arg) :: binary

Same as credential_gnome_keyring/2 but raises an exception on error.

credential_store(repository, args \\ [])

Specs

credential_store(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git credential-store in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

credential_store!(repository, args \\ [])

Specs

credential_store!(Git.Repository.t, cli_arg) :: binary

Same as credential_store/2 but raises an exception on error.

cvsexportcommit(repository, args \\ [])

Specs

cvsexportcommit(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git cvsexportcommit in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

cvsexportcommit!(repository, args \\ [])

Specs

cvsexportcommit!(Git.Repository.t, cli_arg) :: binary

Same as cvsexportcommit/2 but raises an exception on error.

cvsimport(repository, args \\ [])

Specs

cvsimport(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git cvsimport in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

cvsimport!(repository, args \\ [])

Specs

cvsimport!(Git.Repository.t, cli_arg) :: binary

Same as cvsimport/2 but raises an exception on error.

cvsserver(repository, args \\ [])

Specs

cvsserver(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git cvsserver in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

cvsserver!(repository, args \\ [])

Specs

cvsserver!(Git.Repository.t, cli_arg) :: binary

Same as cvsserver/2 but raises an exception on error.

daemon(repository, args \\ [])

Specs

daemon(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git daemon in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

daemon!(repository, args \\ [])

Specs

daemon!(Git.Repository.t, cli_arg) :: binary

Same as daemon/2 but raises an exception on error.

describe(repository, args \\ [])

Specs

describe(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git describe in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

describe!(repository, args \\ [])

Specs

describe!(Git.Repository.t, cli_arg) :: binary

Same as describe/2 but raises an exception on error.

diff(repository, args \\ [])

Specs

diff(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git diff in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

diff!(repository, args \\ [])

Specs

diff!(Git.Repository.t, cli_arg) :: binary

Same as diff/2 but raises an exception on error.

diff_files(repository, args \\ [])

Specs

diff_files(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git diff-files in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

diff_files!(repository, args \\ [])

Specs

diff_files!(Git.Repository.t, cli_arg) :: binary

Same as diff_files/2 but raises an exception on error.

diff_index(repository, args \\ [])

Specs

diff_index(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git diff-index in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

diff_index!(repository, args \\ [])

Specs

diff_index!(Git.Repository.t, cli_arg) :: binary

Same as diff_index/2 but raises an exception on error.

diff_tree(repository, args \\ [])

Specs

diff_tree(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git diff-tree in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

diff_tree!(repository, args \\ [])

Specs

diff_tree!(Git.Repository.t, cli_arg) :: binary

Same as diff_tree/2 but raises an exception on error.

difftool(repository, args \\ [])

Specs

difftool(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git difftool in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

difftool!(repository, args \\ [])

Specs

difftool!(Git.Repository.t, cli_arg) :: binary

Same as difftool/2 but raises an exception on error.

difftool__helper(repository, args \\ [])

Specs

difftool__helper(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git difftool--helper in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

difftool__helper!(repository, args \\ [])

Specs

difftool__helper!(Git.Repository.t, cli_arg) :: binary

Same as difftool__helper/2 but raises an exception on error.

execute_command(repo, command, args, callback)

Specs

execute_command(Repository.t | nil, bitstring, list, (bitstring -> any | error)) ::
  {:ok, any} |
  {:error, any}

Execute the git command in the given repository.

fast_export(repository, args \\ [])

Specs

fast_export(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git fast-export in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

fast_export!(repository, args \\ [])

Specs

fast_export!(Git.Repository.t, cli_arg) :: binary

Same as fast_export/2 but raises an exception on error.

fast_import(repository, args \\ [])

Specs

fast_import(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git fast-import in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

fast_import!(repository, args \\ [])

Specs

fast_import!(Git.Repository.t, cli_arg) :: binary

Same as fast_import/2 but raises an exception on error.

fetch(repository, args \\ [])

Specs

fetch(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git fetch in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

fetch!(repository, args \\ [])

Specs

fetch!(Git.Repository.t, cli_arg) :: binary

Same as fetch/2 but raises an exception on error.

fetch_pack(repository, args \\ [])

Specs

fetch_pack(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git fetch-pack in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

fetch_pack!(repository, args \\ [])

Specs

fetch_pack!(Git.Repository.t, cli_arg) :: binary

Same as fetch_pack/2 but raises an exception on error.

filter_branch(repository, args \\ [])

Specs

filter_branch(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git filter-branch in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

filter_branch!(repository, args \\ [])

Specs

filter_branch!(Git.Repository.t, cli_arg) :: binary

Same as filter_branch/2 but raises an exception on error.

fmt_merge_msg(repository, args \\ [])

Specs

fmt_merge_msg(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git fmt-merge-msg in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

fmt_merge_msg!(repository, args \\ [])

Specs

fmt_merge_msg!(Git.Repository.t, cli_arg) :: binary

Same as fmt_merge_msg/2 but raises an exception on error.

for_each_ref(repository, args \\ [])

Specs

for_each_ref(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git for-each-ref in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

for_each_ref!(repository, args \\ [])

Specs

for_each_ref!(Git.Repository.t, cli_arg) :: binary

Same as for_each_ref/2 but raises an exception on error.

format_patch(repository, args \\ [])

Specs

format_patch(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git format-patch in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

format_patch!(repository, args \\ [])

Specs

format_patch!(Git.Repository.t, cli_arg) :: binary

Same as format_patch/2 but raises an exception on error.

fsck(repository, args \\ [])

Specs

fsck(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git fsck in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

fsck!(repository, args \\ [])

Specs

fsck!(Git.Repository.t, cli_arg) :: binary

Same as fsck/2 but raises an exception on error.

fsck_objects(repository, args \\ [])

Specs

fsck_objects(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git fsck-objects in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

fsck_objects!(repository, args \\ [])

Specs

fsck_objects!(Git.Repository.t, cli_arg) :: binary

Same as fsck_objects/2 but raises an exception on error.

gc(repository, args \\ [])

Specs

gc(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git gc in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

gc!(repository, args \\ [])

Specs

gc!(Git.Repository.t, cli_arg) :: binary

Same as gc/2 but raises an exception on error.

get_tar_commit_id(repository, args \\ [])

Specs

get_tar_commit_id(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git get-tar-commit-id in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

get_tar_commit_id!(repository, args \\ [])

Specs

get_tar_commit_id!(Git.Repository.t, cli_arg) :: binary

Same as get_tar_commit_id/2 but raises an exception on error.

grep(repository, args \\ [])

Specs

grep(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git grep in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

grep!(repository, args \\ [])

Specs

grep!(Git.Repository.t, cli_arg) :: binary

Same as grep/2 but raises an exception on error.

gui(repository, args \\ [])

Specs

gui(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git gui in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

gui!(repository, args \\ [])

Specs

gui!(Git.Repository.t, cli_arg) :: binary

Same as gui/2 but raises an exception on error.

gui__askpass(repository, args \\ [])

Specs

gui__askpass(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git gui--askpass in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

gui__askpass!(repository, args \\ [])

Specs

gui__askpass!(Git.Repository.t, cli_arg) :: binary

Same as gui__askpass/2 but raises an exception on error.

hash_object(repository, args \\ [])

Specs

hash_object(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git hash-object in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

hash_object!(repository, args \\ [])

Specs

hash_object!(Git.Repository.t, cli_arg) :: binary

Same as hash_object/2 but raises an exception on error.

help(repository, args \\ [])

Specs

help(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git help in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

help!(repository, args \\ [])

Specs

help!(Git.Repository.t, cli_arg) :: binary

Same as help/2 but raises an exception on error.

http_backend(repository, args \\ [])

Specs

http_backend(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git http-backend in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

http_backend!(repository, args \\ [])

Specs

http_backend!(Git.Repository.t, cli_arg) :: binary

Same as http_backend/2 but raises an exception on error.

http_fetch(repository, args \\ [])

Specs

http_fetch(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git http-fetch in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

http_fetch!(repository, args \\ [])

Specs

http_fetch!(Git.Repository.t, cli_arg) :: binary

Same as http_fetch/2 but raises an exception on error.

http_push(repository, args \\ [])

Specs

http_push(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git http-push in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

http_push!(repository, args \\ [])

Specs

http_push!(Git.Repository.t, cli_arg) :: binary

Same as http_push/2 but raises an exception on error.

imap_send(repository, args \\ [])

Specs

imap_send(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git imap-send in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

imap_send!(repository, args \\ [])

Specs

imap_send!(Git.Repository.t, cli_arg) :: binary

Same as imap_send/2 but raises an exception on error.

index_pack(repository, args \\ [])

Specs

index_pack(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git index-pack in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

index_pack!(repository, args \\ [])

Specs

index_pack!(Git.Repository.t, cli_arg) :: binary

Same as index_pack/2 but raises an exception on error.

init(args \\ [])

Specs

init(cli_arg) :: {:ok, Git.Repository.t} | error
init!(args \\ [])

Specs

init!(cli_arg) :: {:ok, Git.Repository.t} | error

Run git init in the given directory Returns {:ok, repository} on success and {:error, reason} on failure.

init_db(repository, args \\ [])

Specs

init_db(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git init-db in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

init_db!(repository, args \\ [])

Specs

init_db!(Git.Repository.t, cli_arg) :: binary

Same as init_db/2 but raises an exception on error.

instaweb(repository, args \\ [])

Specs

instaweb(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git instaweb in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

instaweb!(repository, args \\ [])

Specs

instaweb!(Git.Repository.t, cli_arg) :: binary

Same as instaweb/2 but raises an exception on error.

interpret_trailers(repository, args \\ [])

Specs

interpret_trailers(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git interpret-trailers in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

interpret_trailers!(repository, args \\ [])

Specs

interpret_trailers!(Git.Repository.t, cli_arg) :: binary

Same as interpret_trailers/2 but raises an exception on error.

log(repository, args \\ [])

Specs

log(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git log in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

log!(repository, args \\ [])

Specs

log!(Git.Repository.t, cli_arg) :: binary

Same as log/2 but raises an exception on error.

ls_files(repository, args \\ [])

Specs

ls_files(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git ls-files in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

ls_files!(repository, args \\ [])

Specs

ls_files!(Git.Repository.t, cli_arg) :: binary

Same as ls_files/2 but raises an exception on error.

ls_remote(repository, args \\ [])

Specs

ls_remote(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git ls-remote in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

ls_remote!(repository, args \\ [])

Specs

ls_remote!(Git.Repository.t, cli_arg) :: binary

Same as ls_remote/2 but raises an exception on error.

ls_tree(repository, args \\ [])

Specs

ls_tree(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git ls-tree in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

ls_tree!(repository, args \\ [])

Specs

ls_tree!(Git.Repository.t, cli_arg) :: binary

Same as ls_tree/2 but raises an exception on error.

mailinfo(repository, args \\ [])

Specs

mailinfo(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git mailinfo in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

mailinfo!(repository, args \\ [])

Specs

mailinfo!(Git.Repository.t, cli_arg) :: binary

Same as mailinfo/2 but raises an exception on error.

mailsplit(repository, args \\ [])

Specs

mailsplit(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git mailsplit in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

mailsplit!(repository, args \\ [])

Specs

mailsplit!(Git.Repository.t, cli_arg) :: binary

Same as mailsplit/2 but raises an exception on error.

merge(repository, args \\ [])

Specs

merge(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git merge in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

merge!(repository, args \\ [])

Specs

merge!(Git.Repository.t, cli_arg) :: binary

Same as merge/2 but raises an exception on error.

merge_base(repository, args \\ [])

Specs

merge_base(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git merge-base in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

merge_base!(repository, args \\ [])

Specs

merge_base!(Git.Repository.t, cli_arg) :: binary

Same as merge_base/2 but raises an exception on error.

merge_file(repository, args \\ [])

Specs

merge_file(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git merge-file in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

merge_file!(repository, args \\ [])

Specs

merge_file!(Git.Repository.t, cli_arg) :: binary

Same as merge_file/2 but raises an exception on error.

merge_index(repository, args \\ [])

Specs

merge_index(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git merge-index in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

merge_index!(repository, args \\ [])

Specs

merge_index!(Git.Repository.t, cli_arg) :: binary

Same as merge_index/2 but raises an exception on error.

merge_octopus(repository, args \\ [])

Specs

merge_octopus(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git merge-octopus in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

merge_octopus!(repository, args \\ [])

Specs

merge_octopus!(Git.Repository.t, cli_arg) :: binary

Same as merge_octopus/2 but raises an exception on error.

merge_one_file(repository, args \\ [])

Specs

merge_one_file(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git merge-one-file in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

merge_one_file!(repository, args \\ [])

Specs

merge_one_file!(Git.Repository.t, cli_arg) :: binary

Same as merge_one_file/2 but raises an exception on error.

merge_ours(repository, args \\ [])

Specs

merge_ours(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git merge-ours in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

merge_ours!(repository, args \\ [])

Specs

merge_ours!(Git.Repository.t, cli_arg) :: binary

Same as merge_ours/2 but raises an exception on error.

merge_recursive(repository, args \\ [])

Specs

merge_recursive(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git merge-recursive in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

merge_recursive!(repository, args \\ [])

Specs

merge_recursive!(Git.Repository.t, cli_arg) :: binary

Same as merge_recursive/2 but raises an exception on error.

merge_resolve(repository, args \\ [])

Specs

merge_resolve(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git merge-resolve in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

merge_resolve!(repository, args \\ [])

Specs

merge_resolve!(Git.Repository.t, cli_arg) :: binary

Same as merge_resolve/2 but raises an exception on error.

merge_subtree(repository, args \\ [])

Specs

merge_subtree(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git merge-subtree in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

merge_subtree!(repository, args \\ [])

Specs

merge_subtree!(Git.Repository.t, cli_arg) :: binary

Same as merge_subtree/2 but raises an exception on error.

merge_tree(repository, args \\ [])

Specs

merge_tree(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git merge-tree in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

merge_tree!(repository, args \\ [])

Specs

merge_tree!(Git.Repository.t, cli_arg) :: binary

Same as merge_tree/2 but raises an exception on error.

mergetool(repository, args \\ [])

Specs

mergetool(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git mergetool in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

mergetool!(repository, args \\ [])

Specs

mergetool!(Git.Repository.t, cli_arg) :: binary

Same as mergetool/2 but raises an exception on error.

mktag(repository, args \\ [])

Specs

mktag(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git mktag in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

mktag!(repository, args \\ [])

Specs

mktag!(Git.Repository.t, cli_arg) :: binary

Same as mktag/2 but raises an exception on error.

mktree(repository, args \\ [])

Specs

mktree(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git mktree in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

mktree!(repository, args \\ [])

Specs

mktree!(Git.Repository.t, cli_arg) :: binary

Same as mktree/2 but raises an exception on error.

mv(repository, args \\ [])

Specs

mv(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git mv in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

mv!(repository, args \\ [])

Specs

mv!(Git.Repository.t, cli_arg) :: binary

Same as mv/2 but raises an exception on error.

name_rev(repository, args \\ [])

Specs

name_rev(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git name-rev in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

name_rev!(repository, args \\ [])

Specs

name_rev!(Git.Repository.t, cli_arg) :: binary

Same as name_rev/2 but raises an exception on error.

new(path \\ ".")

Specs

Return a Git.Repository struct with the specified or defaulted path. For use with an existing repo (when Git.init and Git.clone would not be appropriate).

notes(repository, args \\ [])

Specs

notes(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git notes in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

notes!(repository, args \\ [])

Specs

notes!(Git.Repository.t, cli_arg) :: binary

Same as notes/2 but raises an exception on error.

p4(repository, args \\ [])

Specs

p4(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git p4 in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

p4!(repository, args \\ [])

Specs

p4!(Git.Repository.t, cli_arg) :: binary

Same as p4/2 but raises an exception on error.

pack_objects(repository, args \\ [])

Specs

pack_objects(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git pack-objects in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

pack_objects!(repository, args \\ [])

Specs

pack_objects!(Git.Repository.t, cli_arg) :: binary

Same as pack_objects/2 but raises an exception on error.

pack_redundant(repository, args \\ [])

Specs

pack_redundant(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git pack-redundant in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

pack_redundant!(repository, args \\ [])

Specs

pack_redundant!(Git.Repository.t, cli_arg) :: binary

Same as pack_redundant/2 but raises an exception on error.

pack_refs(repository, args \\ [])

Specs

pack_refs(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git pack-refs in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

pack_refs!(repository, args \\ [])

Specs

pack_refs!(Git.Repository.t, cli_arg) :: binary

Same as pack_refs/2 but raises an exception on error.

patch_id(repository, args \\ [])

Specs

patch_id(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git patch-id in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

patch_id!(repository, args \\ [])

Specs

patch_id!(Git.Repository.t, cli_arg) :: binary

Same as patch_id/2 but raises an exception on error.

prune(repository, args \\ [])

Specs

prune(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git prune in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

prune!(repository, args \\ [])

Specs

prune!(Git.Repository.t, cli_arg) :: binary

Same as prune/2 but raises an exception on error.

prune_packed(repository, args \\ [])

Specs

prune_packed(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git prune-packed in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

prune_packed!(repository, args \\ [])

Specs

prune_packed!(Git.Repository.t, cli_arg) :: binary

Same as prune_packed/2 but raises an exception on error.

pull(repository, args \\ [])

Specs

pull(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git pull in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

pull!(repository, args \\ [])

Specs

pull!(Git.Repository.t, cli_arg) :: binary

Same as pull/2 but raises an exception on error.

push(repository, args \\ [])

Specs

push(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git push in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

push!(repository, args \\ [])

Specs

push!(Git.Repository.t, cli_arg) :: binary

Same as push/2 but raises an exception on error.

quiltimport(repository, args \\ [])

Specs

quiltimport(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git quiltimport in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

quiltimport!(repository, args \\ [])

Specs

quiltimport!(Git.Repository.t, cli_arg) :: binary

Same as quiltimport/2 but raises an exception on error.

read_tree(repository, args \\ [])

Specs

read_tree(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git read-tree in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

read_tree!(repository, args \\ [])

Specs

read_tree!(Git.Repository.t, cli_arg) :: binary

Same as read_tree/2 but raises an exception on error.

rebase(repository, args \\ [])

Specs

rebase(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git rebase in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

rebase!(repository, args \\ [])

Specs

rebase!(Git.Repository.t, cli_arg) :: binary

Same as rebase/2 but raises an exception on error.

receive_pack(repository, args \\ [])

Specs

receive_pack(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git receive-pack in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

receive_pack!(repository, args \\ [])

Specs

receive_pack!(Git.Repository.t, cli_arg) :: binary

Same as receive_pack/2 but raises an exception on error.

reflog(repository, args \\ [])

Specs

reflog(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git reflog in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

reflog!(repository, args \\ [])

Specs

reflog!(Git.Repository.t, cli_arg) :: binary

Same as reflog/2 but raises an exception on error.

relink(repository, args \\ [])

Specs

relink(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git relink in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

relink!(repository, args \\ [])

Specs

relink!(Git.Repository.t, cli_arg) :: binary

Same as relink/2 but raises an exception on error.

remote(repository, args \\ [])

Specs

remote(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git remote in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

remote!(repository, args \\ [])

Specs

remote!(Git.Repository.t, cli_arg) :: binary

Same as remote/2 but raises an exception on error.

remote_ext(repository, args \\ [])

Specs

remote_ext(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git remote-ext in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

remote_ext!(repository, args \\ [])

Specs

remote_ext!(Git.Repository.t, cli_arg) :: binary

Same as remote_ext/2 but raises an exception on error.

remote_fd(repository, args \\ [])

Specs

remote_fd(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git remote-fd in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

remote_fd!(repository, args \\ [])

Specs

remote_fd!(Git.Repository.t, cli_arg) :: binary

Same as remote_fd/2 but raises an exception on error.

remote_ftp(repository, args \\ [])

Specs

remote_ftp(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git remote-ftp in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

remote_ftp!(repository, args \\ [])

Specs

remote_ftp!(Git.Repository.t, cli_arg) :: binary

Same as remote_ftp/2 but raises an exception on error.

remote_ftps(repository, args \\ [])

Specs

remote_ftps(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git remote-ftps in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

remote_ftps!(repository, args \\ [])

Specs

remote_ftps!(Git.Repository.t, cli_arg) :: binary

Same as remote_ftps/2 but raises an exception on error.

remote_http(repository, args \\ [])

Specs

remote_http(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git remote-http in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

remote_http!(repository, args \\ [])

Specs

remote_http!(Git.Repository.t, cli_arg) :: binary

Same as remote_http/2 but raises an exception on error.

remote_https(repository, args \\ [])

Specs

remote_https(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git remote-https in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

remote_https!(repository, args \\ [])

Specs

remote_https!(Git.Repository.t, cli_arg) :: binary

Same as remote_https/2 but raises an exception on error.

remote_testsvn(repository, args \\ [])

Specs

remote_testsvn(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git remote-testsvn in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

remote_testsvn!(repository, args \\ [])

Specs

remote_testsvn!(Git.Repository.t, cli_arg) :: binary

Same as remote_testsvn/2 but raises an exception on error.

repack(repository, args \\ [])

Specs

repack(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git repack in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

repack!(repository, args \\ [])

Specs

repack!(Git.Repository.t, cli_arg) :: binary

Same as repack/2 but raises an exception on error.

replace(repository, args \\ [])

Specs

replace(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git replace in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

replace!(repository, args \\ [])

Specs

replace!(Git.Repository.t, cli_arg) :: binary

Same as replace/2 but raises an exception on error.

request_pull(repository, args \\ [])

Specs

request_pull(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git request-pull in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

request_pull!(repository, args \\ [])

Specs

request_pull!(Git.Repository.t, cli_arg) :: binary

Same as request_pull/2 but raises an exception on error.

rerere(repository, args \\ [])

Specs

rerere(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git rerere in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

rerere!(repository, args \\ [])

Specs

rerere!(Git.Repository.t, cli_arg) :: binary

Same as rerere/2 but raises an exception on error.

reset(repository, args \\ [])

Specs

reset(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git reset in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

reset!(repository, args \\ [])

Specs

reset!(Git.Repository.t, cli_arg) :: binary

Same as reset/2 but raises an exception on error.

rev_list(repository, args \\ [])

Specs

rev_list(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git rev-list in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

rev_list!(repository, args \\ [])

Specs

rev_list!(Git.Repository.t, cli_arg) :: binary

Same as rev_list/2 but raises an exception on error.

rev_parse(repository, args \\ [])

Specs

rev_parse(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git rev-parse in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

rev_parse!(repository, args \\ [])

Specs

rev_parse!(Git.Repository.t, cli_arg) :: binary

Same as rev_parse/2 but raises an exception on error.

revert(repository, args \\ [])

Specs

revert(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git revert in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

revert!(repository, args \\ [])

Specs

revert!(Git.Repository.t, cli_arg) :: binary

Same as revert/2 but raises an exception on error.

rm(repository, args \\ [])

Specs

rm(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git rm in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

rm!(repository, args \\ [])

Specs

rm!(Git.Repository.t, cli_arg) :: binary

Same as rm/2 but raises an exception on error.

send_email(repository, args \\ [])

Specs

send_email(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git send-email in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

send_email!(repository, args \\ [])

Specs

send_email!(Git.Repository.t, cli_arg) :: binary

Same as send_email/2 but raises an exception on error.

send_pack(repository, args \\ [])

Specs

send_pack(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git send-pack in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

send_pack!(repository, args \\ [])

Specs

send_pack!(Git.Repository.t, cli_arg) :: binary

Same as send_pack/2 but raises an exception on error.

sh_i18n__envsubst(repository, args \\ [])

Specs

sh_i18n__envsubst(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git sh-i18n--envsubst in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

sh_i18n__envsubst!(repository, args \\ [])

Specs

sh_i18n__envsubst!(Git.Repository.t, cli_arg) :: binary

Same as sh_i18n__envsubst/2 but raises an exception on error.

shell(repository, args \\ [])

Specs

shell(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git shell in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

shell!(repository, args \\ [])

Specs

shell!(Git.Repository.t, cli_arg) :: binary

Same as shell/2 but raises an exception on error.

shortlog(repository, args \\ [])

Specs

shortlog(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git shortlog in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

shortlog!(repository, args \\ [])

Specs

shortlog!(Git.Repository.t, cli_arg) :: binary

Same as shortlog/2 but raises an exception on error.

show(repository, args \\ [])

Specs

show(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git show in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

show!(repository, args \\ [])

Specs

show!(Git.Repository.t, cli_arg) :: binary

Same as show/2 but raises an exception on error.

show_branch(repository, args \\ [])

Specs

show_branch(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git show-branch in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

show_branch!(repository, args \\ [])

Specs

show_branch!(Git.Repository.t, cli_arg) :: binary

Same as show_branch/2 but raises an exception on error.

show_index(repository, args \\ [])

Specs

show_index(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git show-index in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

show_index!(repository, args \\ [])

Specs

show_index!(Git.Repository.t, cli_arg) :: binary

Same as show_index/2 but raises an exception on error.

show_ref(repository, args \\ [])

Specs

show_ref(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git show-ref in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

show_ref!(repository, args \\ [])

Specs

show_ref!(Git.Repository.t, cli_arg) :: binary

Same as show_ref/2 but raises an exception on error.

stage(repository, args \\ [])

Specs

stage(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git stage in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

stage!(repository, args \\ [])

Specs

stage!(Git.Repository.t, cli_arg) :: binary

Same as stage/2 but raises an exception on error.

stash(repository, args \\ [])

Specs

stash(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git stash in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

stash!(repository, args \\ [])

Specs

stash!(Git.Repository.t, cli_arg) :: binary

Same as stash/2 but raises an exception on error.

status(repository, args \\ [])

Specs

status(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git status in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

status!(repository, args \\ [])

Specs

status!(Git.Repository.t, cli_arg) :: binary

Same as status/2 but raises an exception on error.

stripspace(repository, args \\ [])

Specs

stripspace(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git stripspace in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

stripspace!(repository, args \\ [])

Specs

stripspace!(Git.Repository.t, cli_arg) :: binary

Same as stripspace/2 but raises an exception on error.

submodule(repository, args \\ [])

Specs

submodule(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git submodule in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

submodule!(repository, args \\ [])

Specs

submodule!(Git.Repository.t, cli_arg) :: binary

Same as submodule/2 but raises an exception on error.

subtree(repository, args \\ [])

Specs

subtree(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git subtree in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

subtree!(repository, args \\ [])

Specs

subtree!(Git.Repository.t, cli_arg) :: binary

Same as subtree/2 but raises an exception on error.

svn(repository, args \\ [])

Specs

svn(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git svn in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

svn!(repository, args \\ [])

Specs

svn!(Git.Repository.t, cli_arg) :: binary

Same as svn/2 but raises an exception on error.

symbolic_ref(repository, args \\ [])

Specs

symbolic_ref(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git symbolic-ref in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

symbolic_ref!(repository, args \\ [])

Specs

symbolic_ref!(Git.Repository.t, cli_arg) :: binary

Same as symbolic_ref/2 but raises an exception on error.

tag(repository, args \\ [])

Specs

tag(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git tag in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

tag!(repository, args \\ [])

Specs

tag!(Git.Repository.t, cli_arg) :: binary

Same as tag/2 but raises an exception on error.

unpack_file(repository, args \\ [])

Specs

unpack_file(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git unpack-file in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

unpack_file!(repository, args \\ [])

Specs

unpack_file!(Git.Repository.t, cli_arg) :: binary

Same as unpack_file/2 but raises an exception on error.

unpack_objects(repository, args \\ [])

Specs

unpack_objects(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git unpack-objects in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

unpack_objects!(repository, args \\ [])

Specs

unpack_objects!(Git.Repository.t, cli_arg) :: binary

Same as unpack_objects/2 but raises an exception on error.

update_index(repository, args \\ [])

Specs

update_index(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git update-index in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

update_index!(repository, args \\ [])

Specs

update_index!(Git.Repository.t, cli_arg) :: binary

Same as update_index/2 but raises an exception on error.

update_ref(repository, args \\ [])

Specs

update_ref(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git update-ref in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

update_ref!(repository, args \\ [])

Specs

update_ref!(Git.Repository.t, cli_arg) :: binary

Same as update_ref/2 but raises an exception on error.

update_server_info(repository, args \\ [])

Specs

update_server_info(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git update-server-info in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

update_server_info!(repository, args \\ [])

Specs

update_server_info!(Git.Repository.t, cli_arg) :: binary

Same as update_server_info/2 but raises an exception on error.

upload_archive(repository, args \\ [])

Specs

upload_archive(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git upload-archive in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

upload_archive!(repository, args \\ [])

Specs

upload_archive!(Git.Repository.t, cli_arg) :: binary

Same as upload_archive/2 but raises an exception on error.

upload_pack(repository, args \\ [])

Specs

upload_pack(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git upload-pack in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

upload_pack!(repository, args \\ [])

Specs

upload_pack!(Git.Repository.t, cli_arg) :: binary

Same as upload_pack/2 but raises an exception on error.

var(repository, args \\ [])

Specs

var(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git var in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

var!(repository, args \\ [])

Specs

var!(Git.Repository.t, cli_arg) :: binary

Same as var/2 but raises an exception on error.

verify_commit(repository, args \\ [])

Specs

verify_commit(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git verify-commit in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

verify_commit!(repository, args \\ [])

Specs

verify_commit!(Git.Repository.t, cli_arg) :: binary

Same as verify_commit/2 but raises an exception on error.

verify_pack(repository, args \\ [])

Specs

verify_pack(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git verify-pack in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

verify_pack!(repository, args \\ [])

Specs

verify_pack!(Git.Repository.t, cli_arg) :: binary

Same as verify_pack/2 but raises an exception on error.

verify_tag(repository, args \\ [])

Specs

verify_tag(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git verify-tag in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

verify_tag!(repository, args \\ [])

Specs

verify_tag!(Git.Repository.t, cli_arg) :: binary

Same as verify_tag/2 but raises an exception on error.

web__browse(repository, args \\ [])

Specs

web__browse(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git web--browse in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

web__browse!(repository, args \\ [])

Specs

web__browse!(Git.Repository.t, cli_arg) :: binary

Same as web__browse/2 but raises an exception on error.

whatchanged(repository, args \\ [])

Specs

whatchanged(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git whatchanged in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

whatchanged!(repository, args \\ [])

Specs

whatchanged!(Git.Repository.t, cli_arg) :: binary

Same as whatchanged/2 but raises an exception on error.

worktree(repository, args \\ [])

Specs

worktree(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git worktree in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

worktree!(repository, args \\ [])

Specs

worktree!(Git.Repository.t, cli_arg) :: binary

Same as worktree/2 but raises an exception on error.

write_tree(repository, args \\ [])

Specs

write_tree(Git.Repository.t, cli_arg) ::
  {:ok, binary} |
  error

Run git write-tree in the given repository Returns {:ok, output} on success and {:error, reason} on failure.

write_tree!(repository, args \\ [])

Specs

write_tree!(Git.Repository.t, cli_arg) :: binary

Same as write_tree/2 but raises an exception on error.