Git utilities for repository management, configuration and synchronisation.
Submodules
This module is a facade that delegates to Apero.Git.Local for local operations.
Remote APIs (REMOVED)
The following functions have been removed from this module as they belong in specialized GitHub/GitLab clients:
create_gh_pr/4— Use a dedicated GitHub client library insteadcreate_glab_mr/4— Use a dedicated GitLab client library insteadlist_issues/2— Use a dedicated GitHub client library instead
Security
All user-supplied values (commit messages, branch names, file paths) are passed as argument lists — never interpolated into shell strings — to prevent shell injection attacks.
Summary
Functions
add(repo_path, files)
deprecated
blame(repo_path, file)
deprecated
branch_exists?(branch)
deprecated
checkout(repo)
deprecated
churn(repo_path \\ ".", opts \\ [])
deprecated
clone(repo)
deprecated
clone_repository(url, target_path)
deprecated
commit(repo, message)
deprecated
config(attr)
deprecated
config_global(attr)
deprecated
config_local(attr)
deprecated
conflict_files(repo_path \\ ".")
deprecated
diff(repo_path \\ ".", opts \\ [])
deprecated
ensure_clone(atom)
deprecated
existing_repos(repos)
deprecated
fetch(repo)
deprecated
fetch_origin(repo_path)
deprecated
get_current_branch(repo_path)
deprecated
get_git_user_email()
deprecated
get_git_user_name()
deprecated
get_hostname()
deprecated
get_system_user_email()
deprecated
get_system_user_name()
deprecated
get_user_info()
deprecated
Checks if the GitHub CLI (gh) is available.
Checks if the GitLab CLI (glab) is available.
has_stash?(repo_path)
deprecated
log(repo_path \\ ".", opts \\ [])
deprecated
mark_resolved(repo_path, file)
deprecated
merge_abort(repo_path \\ ".")
deprecated
pull(repo)
deprecated
set_user_info(name, email)
deprecated
setup_credentials(opts \\ [])
deprecated
stage_and_commit(repo, message)
deprecated
stash_if_needed(repo_path)
deprecated
stash_push(repo_path, opts \\ [])
deprecated
sync(repos)
deprecated
Functions
This function is deprecated. Use Apero.Git.Local.add/2 instead.
This function is deprecated. Use Apero.Git.Local.blame/2 instead.
This function is deprecated. Use Apero.Git.Local.branch_exists?/1 instead.
This function is deprecated. Use Apero.Git.Local.checkout/1 instead.
This function is deprecated. Use Apero.Git.Local.churn/2 instead.
This function is deprecated. Use Apero.Git.Local.clone/1 instead.
This function is deprecated. Use Apero.Git.Local.clone_repository/2 instead.
This function is deprecated. Use Apero.Git.Local.commit/2 instead.
This function is deprecated. Use Apero.Git.Local.config/1 instead.
This function is deprecated. Use Apero.Git.Local.config_global/1 instead.
This function is deprecated. Use Apero.Git.Local.config_local/1 instead.
This function is deprecated. Use Apero.Git.Local.conflict_files/1 instead.
This function is deprecated. Use Apero.Git.Local.diff/2 instead.
This function is deprecated. Use Apero.Git.Local.ensure_clone/2 instead.
@spec ensure_clone(nil) :: {:error, :no_repo_defined}
This function is deprecated. Use Apero.Git.Local.existing_repos/1 instead.
This function is deprecated. Use Apero.Git.Local.fetch/1 instead.
This function is deprecated. Use Apero.Git.Local.fetch_origin/1 instead.
This function is deprecated. Use Apero.Git.Local.get_current_branch/1 instead.
This function is deprecated. Use Apero.Git.Local.get_git_user_email/0 instead.
@spec get_git_user_email() :: binary() | nil
This function is deprecated. Use Apero.Git.Local.get_git_user_name/0 instead.
@spec get_git_user_name() :: binary() | nil
This function is deprecated. Use Apero.Git.Local.get_hostname/0 instead.
@spec get_hostname() :: binary()
This function is deprecated. Use Apero.Git.Local.get_system_user_email/0 instead.
@spec get_system_user_email() :: binary()
This function is deprecated. Use Apero.Git.Local.get_system_user_name/0 instead.
@spec get_system_user_name() :: binary()
This function is deprecated. Use Apero.Git.Local.get_user_info/0 instead.
@spec get_user_info() :: map()
@spec gh_available?() :: boolean()
Checks if the GitHub CLI (gh) is available.
@spec glab_available?() :: boolean()
Checks if the GitLab CLI (glab) is available.
This function is deprecated. Use Apero.Git.Local.has_stash?/1 instead.
This function is deprecated. Use Apero.Git.Local.has_uncommitted_changes?/1 instead.
This function is deprecated. Use Apero.Git.Local.log/2 instead.
This function is deprecated. Use Apero.Git.Local.mark_resolved/2 instead.
This function is deprecated. Use Apero.Git.Local.merge_abort/1 instead.
This function is deprecated. Use Apero.Git.Local.pull/1 instead.
This function is deprecated. Use Apero.Git.Local.pull_origin/2 instead.
This function is deprecated. Use Apero.Git.Local.set_user_info/2 instead.
This function is deprecated. Use Apero.Git.Local.setup_credentials/1 instead.
This function is deprecated. Use Apero.Git.Local.stage_and_commit/2 instead.
This function is deprecated. Use Apero.Git.Local.stash_if_needed/1 instead.
This function is deprecated. Use Apero.Git.Local.stash_push/2 instead.
This function is deprecated. Use Apero.Git.Local.sync/1 instead.
This function is deprecated. Use Apero.Git.Local.update_existing_repository/1 instead.