git_cli v0.3.0 Git View Source

Link to this section 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.

Link to this section Types

Link to this type

cli_arg() View Source
cli_arg() :: String.t() | [String.t()]

Link to this type

error() View Source
error() :: {:error, Git.Error}

Link to this section Functions

Link to this function

add(repository, args \\ []) View Source
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.

Link to this function

add!(repository, args \\ []) View Source

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

Link to this function

add__interactive(repository, args \\ []) View Source
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.

Link to this function

add__interactive!(repository, args \\ []) View Source
add__interactive!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

am(repository, args \\ []) View Source
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.

Link to this function

am!(repository, args \\ []) View Source

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

Link to this function

annotate(repository, args \\ []) View Source
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.

Link to this function

annotate!(repository, args \\ []) View Source
annotate!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

archimport(repository, args \\ []) View Source
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.

Link to this function

archimport!(repository, args \\ []) View Source
archimport!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

archive(repository, args \\ []) View Source
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.

Link to this function

archive!(repository, args \\ []) View Source
archive!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

bisect(repository, args \\ []) View Source
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.

Link to this function

bisect!(repository, args \\ []) View Source
bisect!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

bisect__helper(repository, args \\ []) View Source
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.

Link to this function

bisect__helper!(repository, args \\ []) View Source
bisect__helper!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

blame(repository, args \\ []) View Source
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.

Link to this function

blame!(repository, args \\ []) View Source
blame!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

branch(repository, args \\ []) View Source
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.

Link to this function

branch!(repository, args \\ []) View Source
branch!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

bundle(repository, args \\ []) View Source
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.

Link to this function

bundle!(repository, args \\ []) View Source
bundle!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

cat_file(repository, args \\ []) View Source
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.

Link to this function

cat_file!(repository, args \\ []) View Source
cat_file!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

check_attr(repository, args \\ []) View Source
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.

Link to this function

check_attr!(repository, args \\ []) View Source
check_attr!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

check_ignore(repository, args \\ []) View Source
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.

Link to this function

check_ignore!(repository, args \\ []) View Source
check_ignore!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

check_mailmap(repository, args \\ []) View Source
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.

Link to this function

check_mailmap!(repository, args \\ []) View Source
check_mailmap!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

check_ref_format(repository, args \\ []) View Source
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.

Link to this function

check_ref_format!(repository, args \\ []) View Source
check_ref_format!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

checkout(repository, args \\ []) View Source
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.

Link to this function

checkout!(repository, args \\ []) View Source
checkout!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

checkout_index(repository, args \\ []) View Source
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.

Link to this function

checkout_index!(repository, args \\ []) View Source
checkout_index!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

cherry(repository, args \\ []) View Source
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.

Link to this function

cherry!(repository, args \\ []) View Source
cherry!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

cherry_pick(repository, args \\ []) View Source
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.

Link to this function

cherry_pick!(repository, args \\ []) View Source
cherry_pick!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

citool(repository, args \\ []) View Source
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.

Link to this function

citool!(repository, args \\ []) View Source
citool!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

clean(repository, args \\ []) View Source
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.

Link to this function

clean!(repository, args \\ []) View Source
clean!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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.

Link to this function

column(repository, args \\ []) View Source
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.

Link to this function

column!(repository, args \\ []) View Source
column!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

commit(repository, args \\ []) View Source
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.

Link to this function

commit!(repository, args \\ []) View Source
commit!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

commit_tree(repository, args \\ []) View Source
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.

Link to this function

commit_tree!(repository, args \\ []) View Source
commit_tree!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

config(repository, args \\ []) View Source
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.

Link to this function

config!(repository, args \\ []) View Source
config!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

count_objects(repository, args \\ []) View Source
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.

Link to this function

count_objects!(repository, args \\ []) View Source
count_objects!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

credential(repository, args \\ []) View Source
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.

Link to this function

credential!(repository, args \\ []) View Source
credential!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

credential_cache(repository, args \\ []) View Source
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.

Link to this function

credential_cache!(repository, args \\ []) View Source
credential_cache!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

credential_cache__daemon(repository, args \\ []) View Source
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.

Link to this function

credential_cache__daemon!(repository, args \\ []) View Source
credential_cache__daemon!(Git.Repository.t(), cli_arg()) ::
  binary() | no_return()

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

Link to this function

credential_gnome_keyring(repository, args \\ []) View Source
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.

Link to this function

credential_gnome_keyring!(repository, args \\ []) View Source
credential_gnome_keyring!(Git.Repository.t(), cli_arg()) ::
  binary() | no_return()

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

Link to this function

credential_store(repository, args \\ []) View Source
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.

Link to this function

credential_store!(repository, args \\ []) View Source
credential_store!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

cvsexportcommit(repository, args \\ []) View Source
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.

Link to this function

cvsexportcommit!(repository, args \\ []) View Source
cvsexportcommit!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

cvsimport(repository, args \\ []) View Source
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.

Link to this function

cvsimport!(repository, args \\ []) View Source
cvsimport!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

cvsserver(repository, args \\ []) View Source
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.

Link to this function

cvsserver!(repository, args \\ []) View Source
cvsserver!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

daemon(repository, args \\ []) View Source
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.

Link to this function

daemon!(repository, args \\ []) View Source
daemon!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

describe(repository, args \\ []) View Source
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.

Link to this function

describe!(repository, args \\ []) View Source
describe!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

diff(repository, args \\ []) View Source
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.

Link to this function

diff!(repository, args \\ []) View Source
diff!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

diff_files(repository, args \\ []) View Source
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.

Link to this function

diff_files!(repository, args \\ []) View Source
diff_files!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

diff_index(repository, args \\ []) View Source
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.

Link to this function

diff_index!(repository, args \\ []) View Source
diff_index!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

diff_tree(repository, args \\ []) View Source
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.

Link to this function

diff_tree!(repository, args \\ []) View Source
diff_tree!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

difftool(repository, args \\ []) View Source
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.

Link to this function

difftool!(repository, args \\ []) View Source
difftool!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

difftool__helper(repository, args \\ []) View Source
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.

Link to this function

difftool__helper!(repository, args \\ []) View Source
difftool__helper!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

execute_command(repo, command, args, callback) View Source
execute_command(
  Git.Repository.t() | nil,
  String.t(),
  cli_arg(),
  (String.t() -> {:ok, any()} | error())
) :: {:ok, any()} | {:error, any()}

Execute the git command in the given repository.

Link to this function

fast_export(repository, args \\ []) View Source
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.

Link to this function

fast_export!(repository, args \\ []) View Source
fast_export!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

fast_import(repository, args \\ []) View Source
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.

Link to this function

fast_import!(repository, args \\ []) View Source
fast_import!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

fetch(repository, args \\ []) View Source
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.

Link to this function

fetch!(repository, args \\ []) View Source
fetch!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

fetch_pack(repository, args \\ []) View Source
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.

Link to this function

fetch_pack!(repository, args \\ []) View Source
fetch_pack!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

filter_branch(repository, args \\ []) View Source
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.

Link to this function

filter_branch!(repository, args \\ []) View Source
filter_branch!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

fmt_merge_msg(repository, args \\ []) View Source
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.

Link to this function

fmt_merge_msg!(repository, args \\ []) View Source
fmt_merge_msg!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

for_each_ref(repository, args \\ []) View Source
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.

Link to this function

for_each_ref!(repository, args \\ []) View Source
for_each_ref!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

format_patch(repository, args \\ []) View Source
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.

Link to this function

format_patch!(repository, args \\ []) View Source
format_patch!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

fsck(repository, args \\ []) View Source
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.

Link to this function

fsck!(repository, args \\ []) View Source
fsck!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

fsck_objects(repository, args \\ []) View Source
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.

Link to this function

fsck_objects!(repository, args \\ []) View Source
fsck_objects!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

gc(repository, args \\ []) View Source
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.

Link to this function

gc!(repository, args \\ []) View Source

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

Link to this function

get_tar_commit_id(repository, args \\ []) View Source
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.

Link to this function

get_tar_commit_id!(repository, args \\ []) View Source
get_tar_commit_id!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

grep(repository, args \\ []) View Source
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.

Link to this function

grep!(repository, args \\ []) View Source
grep!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

gui(repository, args \\ []) View Source
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.

Link to this function

gui!(repository, args \\ []) View Source

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

Link to this function

gui__askpass(repository, args \\ []) View Source
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.

Link to this function

gui__askpass!(repository, args \\ []) View Source
gui__askpass!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

hash_object(repository, args \\ []) View Source
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.

Link to this function

hash_object!(repository, args \\ []) View Source
hash_object!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

help(repository, args \\ []) View Source
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.

Link to this function

help!(repository, args \\ []) View Source
help!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

http_backend(repository, args \\ []) View Source
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.

Link to this function

http_backend!(repository, args \\ []) View Source
http_backend!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

http_fetch(repository, args \\ []) View Source
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.

Link to this function

http_fetch!(repository, args \\ []) View Source
http_fetch!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

http_push(repository, args \\ []) View Source
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.

Link to this function

http_push!(repository, args \\ []) View Source
http_push!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

imap_send(repository, args \\ []) View Source
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.

Link to this function

imap_send!(repository, args \\ []) View Source
imap_send!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

index_pack(repository, args \\ []) View Source
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.

Link to this function

index_pack!(repository, args \\ []) View Source
index_pack!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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.

Link to this function

init_db(repository, args \\ []) View Source
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.

Link to this function

init_db!(repository, args \\ []) View Source
init_db!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

instaweb(repository, args \\ []) View Source
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.

Link to this function

instaweb!(repository, args \\ []) View Source
instaweb!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

interpret_trailers(repository, args \\ []) View Source
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.

Link to this function

interpret_trailers!(repository, args \\ []) View Source
interpret_trailers!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

log(repository, args \\ []) View Source
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.

Link to this function

log!(repository, args \\ []) View Source

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

Link to this function

ls_files(repository, args \\ []) View Source
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.

Link to this function

ls_files!(repository, args \\ []) View Source
ls_files!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

ls_remote(repository, args \\ []) View Source
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.

Link to this function

ls_remote!(repository, args \\ []) View Source
ls_remote!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

ls_tree(repository, args \\ []) View Source
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.

Link to this function

ls_tree!(repository, args \\ []) View Source
ls_tree!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

mailinfo(repository, args \\ []) View Source
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.

Link to this function

mailinfo!(repository, args \\ []) View Source
mailinfo!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

mailsplit(repository, args \\ []) View Source
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.

Link to this function

mailsplit!(repository, args \\ []) View Source
mailsplit!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

merge(repository, args \\ []) View Source
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.

Link to this function

merge!(repository, args \\ []) View Source
merge!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

merge_base(repository, args \\ []) View Source
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.

Link to this function

merge_base!(repository, args \\ []) View Source
merge_base!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

merge_file(repository, args \\ []) View Source
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.

Link to this function

merge_file!(repository, args \\ []) View Source
merge_file!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

merge_index(repository, args \\ []) View Source
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.

Link to this function

merge_index!(repository, args \\ []) View Source
merge_index!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

merge_octopus(repository, args \\ []) View Source
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.

Link to this function

merge_octopus!(repository, args \\ []) View Source
merge_octopus!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

merge_one_file(repository, args \\ []) View Source
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.

Link to this function

merge_one_file!(repository, args \\ []) View Source
merge_one_file!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

merge_ours(repository, args \\ []) View Source
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.

Link to this function

merge_ours!(repository, args \\ []) View Source
merge_ours!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

merge_recursive(repository, args \\ []) View Source
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.

Link to this function

merge_recursive!(repository, args \\ []) View Source
merge_recursive!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

merge_resolve(repository, args \\ []) View Source
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.

Link to this function

merge_resolve!(repository, args \\ []) View Source
merge_resolve!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

merge_subtree(repository, args \\ []) View Source
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.

Link to this function

merge_subtree!(repository, args \\ []) View Source
merge_subtree!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

merge_tree(repository, args \\ []) View Source
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.

Link to this function

merge_tree!(repository, args \\ []) View Source
merge_tree!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

mergetool(repository, args \\ []) View Source
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.

Link to this function

mergetool!(repository, args \\ []) View Source
mergetool!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

mktag(repository, args \\ []) View Source
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.

Link to this function

mktag!(repository, args \\ []) View Source
mktag!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

mktree(repository, args \\ []) View Source
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.

Link to this function

mktree!(repository, args \\ []) View Source
mktree!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

mv(repository, args \\ []) View Source
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.

Link to this function

mv!(repository, args \\ []) View Source

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

Link to this function

name_rev(repository, args \\ []) View Source
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.

Link to this function

name_rev!(repository, args \\ []) View Source
name_rev!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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).

Link to this function

notes(repository, args \\ []) View Source
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.

Link to this function

notes!(repository, args \\ []) View Source
notes!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

p4(repository, args \\ []) View Source
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.

Link to this function

p4!(repository, args \\ []) View Source

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

Link to this function

pack_objects(repository, args \\ []) View Source
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.

Link to this function

pack_objects!(repository, args \\ []) View Source
pack_objects!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

pack_redundant(repository, args \\ []) View Source
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.

Link to this function

pack_redundant!(repository, args \\ []) View Source
pack_redundant!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

pack_refs(repository, args \\ []) View Source
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.

Link to this function

pack_refs!(repository, args \\ []) View Source
pack_refs!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

patch_id(repository, args \\ []) View Source
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.

Link to this function

patch_id!(repository, args \\ []) View Source
patch_id!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

prune(repository, args \\ []) View Source
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.

Link to this function

prune!(repository, args \\ []) View Source
prune!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

prune_packed(repository, args \\ []) View Source
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.

Link to this function

prune_packed!(repository, args \\ []) View Source
prune_packed!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

pull(repository, args \\ []) View Source
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.

Link to this function

pull!(repository, args \\ []) View Source
pull!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

push(repository, args \\ []) View Source
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.

Link to this function

push!(repository, args \\ []) View Source
push!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

quiltimport(repository, args \\ []) View Source
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.

Link to this function

quiltimport!(repository, args \\ []) View Source
quiltimport!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

read_tree(repository, args \\ []) View Source
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.

Link to this function

read_tree!(repository, args \\ []) View Source
read_tree!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

rebase(repository, args \\ []) View Source
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.

Link to this function

rebase!(repository, args \\ []) View Source
rebase!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

receive_pack(repository, args \\ []) View Source
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.

Link to this function

receive_pack!(repository, args \\ []) View Source
receive_pack!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

reflog(repository, args \\ []) View Source
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.

Link to this function

reflog!(repository, args \\ []) View Source
reflog!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

relink(repository, args \\ []) View Source
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.

Link to this function

relink!(repository, args \\ []) View Source
relink!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

remote(repository, args \\ []) View Source
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.

Link to this function

remote!(repository, args \\ []) View Source
remote!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

remote_ext(repository, args \\ []) View Source
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.

Link to this function

remote_ext!(repository, args \\ []) View Source
remote_ext!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

remote_fd(repository, args \\ []) View Source
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.

Link to this function

remote_fd!(repository, args \\ []) View Source
remote_fd!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

remote_ftp(repository, args \\ []) View Source
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.

Link to this function

remote_ftp!(repository, args \\ []) View Source
remote_ftp!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

remote_ftps(repository, args \\ []) View Source
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.

Link to this function

remote_ftps!(repository, args \\ []) View Source
remote_ftps!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

remote_http(repository, args \\ []) View Source
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.

Link to this function

remote_http!(repository, args \\ []) View Source
remote_http!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

remote_https(repository, args \\ []) View Source
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.

Link to this function

remote_https!(repository, args \\ []) View Source
remote_https!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

remote_testsvn(repository, args \\ []) View Source
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.

Link to this function

remote_testsvn!(repository, args \\ []) View Source
remote_testsvn!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

repack(repository, args \\ []) View Source
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.

Link to this function

repack!(repository, args \\ []) View Source
repack!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

replace(repository, args \\ []) View Source
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.

Link to this function

replace!(repository, args \\ []) View Source
replace!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

request_pull(repository, args \\ []) View Source
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.

Link to this function

request_pull!(repository, args \\ []) View Source
request_pull!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

rerere(repository, args \\ []) View Source
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.

Link to this function

rerere!(repository, args \\ []) View Source
rerere!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

reset(repository, args \\ []) View Source
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.

Link to this function

reset!(repository, args \\ []) View Source
reset!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

rev_list(repository, args \\ []) View Source
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.

Link to this function

rev_list!(repository, args \\ []) View Source
rev_list!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

rev_parse(repository, args \\ []) View Source
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.

Link to this function

rev_parse!(repository, args \\ []) View Source
rev_parse!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

revert(repository, args \\ []) View Source
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.

Link to this function

revert!(repository, args \\ []) View Source
revert!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

rm(repository, args \\ []) View Source
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.

Link to this function

rm!(repository, args \\ []) View Source

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

Link to this function

send_email(repository, args \\ []) View Source
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.

Link to this function

send_email!(repository, args \\ []) View Source
send_email!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

send_pack(repository, args \\ []) View Source
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.

Link to this function

send_pack!(repository, args \\ []) View Source
send_pack!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

sh_i18n__envsubst(repository, args \\ []) View Source
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.

Link to this function

sh_i18n__envsubst!(repository, args \\ []) View Source
sh_i18n__envsubst!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

shell(repository, args \\ []) View Source
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.

Link to this function

shell!(repository, args \\ []) View Source
shell!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

shortlog(repository, args \\ []) View Source
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.

Link to this function

shortlog!(repository, args \\ []) View Source
shortlog!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

show(repository, args \\ []) View Source
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.

Link to this function

show!(repository, args \\ []) View Source
show!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

show_branch(repository, args \\ []) View Source
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.

Link to this function

show_branch!(repository, args \\ []) View Source
show_branch!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

show_index(repository, args \\ []) View Source
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.

Link to this function

show_index!(repository, args \\ []) View Source
show_index!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

show_ref(repository, args \\ []) View Source
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.

Link to this function

show_ref!(repository, args \\ []) View Source
show_ref!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

stage(repository, args \\ []) View Source
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.

Link to this function

stage!(repository, args \\ []) View Source
stage!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

stash(repository, args \\ []) View Source
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.

Link to this function

stash!(repository, args \\ []) View Source
stash!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

status(repository, args \\ []) View Source
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.

Link to this function

status!(repository, args \\ []) View Source
status!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

stripspace(repository, args \\ []) View Source
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.

Link to this function

stripspace!(repository, args \\ []) View Source
stripspace!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

submodule(repository, args \\ []) View Source
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.

Link to this function

submodule!(repository, args \\ []) View Source
submodule!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

subtree(repository, args \\ []) View Source
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.

Link to this function

subtree!(repository, args \\ []) View Source
subtree!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

svn(repository, args \\ []) View Source
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.

Link to this function

svn!(repository, args \\ []) View Source

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

Link to this function

symbolic_ref(repository, args \\ []) View Source
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.

Link to this function

symbolic_ref!(repository, args \\ []) View Source
symbolic_ref!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

tag(repository, args \\ []) View Source
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.

Link to this function

tag!(repository, args \\ []) View Source

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

Link to this function

unpack_file(repository, args \\ []) View Source
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.

Link to this function

unpack_file!(repository, args \\ []) View Source
unpack_file!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

unpack_objects(repository, args \\ []) View Source
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.

Link to this function

unpack_objects!(repository, args \\ []) View Source
unpack_objects!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

update_index(repository, args \\ []) View Source
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.

Link to this function

update_index!(repository, args \\ []) View Source
update_index!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

update_ref(repository, args \\ []) View Source
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.

Link to this function

update_ref!(repository, args \\ []) View Source
update_ref!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

update_server_info(repository, args \\ []) View Source
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.

Link to this function

update_server_info!(repository, args \\ []) View Source
update_server_info!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

upload_archive(repository, args \\ []) View Source
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.

Link to this function

upload_archive!(repository, args \\ []) View Source
upload_archive!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

upload_pack(repository, args \\ []) View Source
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.

Link to this function

upload_pack!(repository, args \\ []) View Source
upload_pack!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

var(repository, args \\ []) View Source
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.

Link to this function

var!(repository, args \\ []) View Source

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

Link to this function

verify_commit(repository, args \\ []) View Source
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.

Link to this function

verify_commit!(repository, args \\ []) View Source
verify_commit!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

verify_pack(repository, args \\ []) View Source
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.

Link to this function

verify_pack!(repository, args \\ []) View Source
verify_pack!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

verify_tag(repository, args \\ []) View Source
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.

Link to this function

verify_tag!(repository, args \\ []) View Source
verify_tag!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

web__browse(repository, args \\ []) View Source
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.

Link to this function

web__browse!(repository, args \\ []) View Source
web__browse!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

whatchanged(repository, args \\ []) View Source
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.

Link to this function

whatchanged!(repository, args \\ []) View Source
whatchanged!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

worktree(repository, args \\ []) View Source
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.

Link to this function

worktree!(repository, args \\ []) View Source
worktree!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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

Link to this function

write_tree(repository, args \\ []) View Source
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.

Link to this function

write_tree!(repository, args \\ []) View Source
write_tree!(Git.Repository.t(), cli_arg()) :: binary() | no_return()

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