Expand description
sync git api
Re-exports§
pub use blame::blame_file;
pub use blame::BlameHunk;
pub use blame::FileBlame;
pub use branch::branch_compare_upstream;
pub use branch::checkout_branch;
pub use branch::checkout_commit;
pub use branch::config_is_pull_rebase;
pub use branch::create_branch;
pub use branch::delete_branch;
pub use branch::get_branch_remote;
pub use branch::get_branches_info;
pub use branch::merge_commit::merge_upstream_commit;
pub use branch::merge_ff::branch_merge_upstream_fastforward;
pub use branch::merge_rebase::merge_upstream_rebase;
pub use branch::rename::rename_branch;
pub use branch::validate_branch_name;
pub use branch::BranchCompare;
pub use branch::BranchDetails;
pub use branch::BranchInfo;
pub use commit::amend;
pub use commit::commit;
pub use commit::tag_commit;
pub use commit_files::get_commit_files;
pub use diff::get_diff_commit;
pub use remotes::get_default_remote;
pub use remotes::get_default_remote_for_fetch;
pub use remotes::get_default_remote_for_push;
pub use remotes::get_remotes;
pub use status::is_workdir_clean;
pub use utils::get_head;
pub use utils::get_head_tuple;
pub use utils::repo_dir;
pub use utils::repo_open_error;
pub use utils::stage_add_all;
pub use utils::stage_add_file;
pub use utils::stage_addremoved;
pub use utils::Head;
Modules§
- Sync git API for fetching a file blame
- branch functions
- Git Api for Commits
- Functions for getting infos about files in commits
- credentials git helper
- sync git api for fetching a diff
- Sign commit data.
- sync git api for fetching a status
- sync git api (various methods)
Structs§
- identifies a single commit
- Return codes for submodule status.
tree_files
returns a list ofFileTree
Enums§
- An enumeration for the possible types of branches
- An enumeration of the operations that can be performed for the
reset
method on aRepository
. - represents the
status.showUntrackedFiles
git config state
Traits§
Functions§
- does these steps:
- add file or path to root ignore file
- discards specific lines in an unstaged hunk of a diff
- get string from config
- returns
Tags
type filled with all tags found in repo - this hook is documented here https://git-scm.com/docs/githooks#_commit_msg we use the same convention as other git clients to create a temp file containing the commit message at
<.git|hooksPath>/COMMIT_EDITMSG
and pass it’s relative path as the only parameter to the hook script. - this hook is documented here https://git-scm.com/docs/githooks#_pre_commit
- rebase current HEAD on
branch
- this will fail for an all untracked file
- This is the same as reword, but will abort and fix the repo if something goes wrong
- query whether
repo_path
points to a repo that is part of a parent git which contains it as a submodule - will only work on utf8 content
- guarantees sorting the result
Type Aliases§
- all tags pointing to a single commit
- hashmap of tag target commit hash to tag names