Modules§
- canonical
- env
- Git environment variables.
- ext
- Extensions and wrappers for
git2types - fmt
- Everything you never knew you wanted for handling git ref names.
- process
- Functions that call to the
gitCLI instead ofgit2. - raw
- libgit2 bindings for Rust
- refs
- url
- Git URLs.
Macros§
- qualified
- Create a [
git_ref_format_core::Qualified] from a string literal. - refname
- Create a [
git_ref_format_core::RefString] from a string literal.
Structs§
- Component
- A path component of a
RefStr. - Namespaced
- A
Qualifiedref under a git namespace. - Oid
- Serializable
git2::Oid - Pattern
Str - Pattern
String - Qualified
- A fully-qualified refname.
- RefStr
- RefString
- Refspec
- A Git refspec.
- Url
- A git local transport URL.
- User
Info - The user information used for signing commits and configuring the
nameandemailfields in the Git config. - Version
- A parsed git version.
Enums§
Constants§
- PROTOCOL_
PORT - Default port of the
gittransport protocol. - VERSION_
REQUIRED - Minimum required git version.
Functions§
- commit
- Create a commit and update the given ref to it.
- configure_
remote - Configure a repository’s radicle remote.
- configure_
repository - Configure a radicle repository.
- fetch
- Fetch from the given
remote. - head
- Get the repository head.
- initial_
commit - Create an initial empty commit.
- is_
not_ found_ err - parse_
ref - Parse a ref string. Optionally returns a namespace.
- parse_
ref_ namespaced - Parse a ref string. Returns an error if it isn’t namespaced.
- push
- Push
refspecsto the givenremoteusing the providednamespace. - remote_
refs - List remote refs of a project, given the remote URL.
- run
- Execute a git command by spawning a child process.
- set_
upstream - Set the upstream of the given branch to the given remote.
- version
- Get the system’s git version.
- write_
tree - Write a tree with the given blob at the given path.