Expand description
git-prole
is a git worktree
manager.
The git-prole
Rust library is a convenience and shouldn’t be depended on. I do not
consider this to be a public/stable API and will make breaking changes here in minor version
bumps. If you’d like a stable git-prole
Rust API for some reason, let me know and we can maybe
work something out.
Modules§
- fs
- Like
fs_err
, but the functions are instrumented withtracing::instrument
and returnmiette::Result
instead ofstd::io::Result
.
Structs§
- AddWorktree
Opts - Options for
git worktree add
. - App
- AppGit
- A
Git
with borrowedConfig
. - Commit
Hash - A Git commit hash.
- Config
- Configuration, both from the command-line and a user configuration file.
- Git
git
CLI wrapper.- GitBranch
- Git methods for dealing with worktrees.
- GitConfig
- Git methods for dealing with config.
- GitPath
- Git methods for dealing with paths.
- GitRefs
- Git methods for dealing with refs.
- GitRemote
- Git methods for dealing with remotes.
- GitStatus
- Git methods for dealing with statuses and the working tree.
- GitWorktree
- Git methods for dealing with worktrees.
- Local
Branch Ref - A Git reference to a local branch.
- Ref
- A Git reference.
- Remote
Branch Ref - A Git reference to a remote branch.
- Renamed
Worktree - A worktree with a new name.
- Resolve
Unique Name Opts - Options for
GitWorktree::resolve_unique_names
. - Status
- A
git status
listing. - Status
Entry - The status of a particular file.
- Utf8
Temp Dir - Worktree
- A Git worktree.
- Worktrees
- A set of Git worktrees.
Enums§
- Branch
Ref - A Git reference to a remote branch.
- Head
Kind - Is
HEAD
detached? - Resolved
Commitish - A resolved
<commit-ish>
, which can either be a commit hash or a ref name. - Status
Code - The status code of a particular file. Each
StatusEntry
has two of these. - Worktree
Head
Traits§
- GitLike
- Path
Display - A way to display a path “nicely”.
Functions§
- final_
component - Get the final component of a path-like value.
- format_
bulleted_ list - Format an iterator of items into a bulleted list with line breaks between elements.
- format_
bulleted_ list_ multiline - Like
format_bulleted_list
, except the second and subsequent lines of multi-line items are indented as well. - only_
paths_ in_ parent_ directory - Check if a set of paths all have the same parent directory and they are the only paths in that directory (other than dotfiles).
- repository_
url_ destination - Where will
url
be cloned to?