worktree_setup_git/
lib.rs1#![cfg_attr(feature = "fail-on-warnings", deny(warnings))]
20#![warn(clippy::all, clippy::pedantic, clippy::nursery, clippy::cargo)]
21#![allow(clippy::multiple_crate_versions)]
22
23mod error;
24mod repo;
25mod status;
26mod worktree;
27
28pub use error::GitError;
29pub use git2::Repository;
30pub use repo::{
31 discover_repo, fetch_remote, get_current_branch, get_default_branch, get_local_branches,
32 get_recent_branches, get_remote_branches, get_remotes, get_repo_root, get_workdir, open_repo,
33};
34pub use status::get_unstaged_and_untracked_files;
35pub use worktree::{
36 WorktreeCreateOptions, WorktreeInfo, create_worktree, delete_branch, get_main_worktree,
37 get_worktrees, prune_worktrees, remove_worktree,
38};