Expand description
Git-related functions and types.
Modules§
DDiffis a diff between diffs. The type aids in the review of aPatchto a project by providing useful context betweenPatchupdates a regularDiffwill miss.- Formatting support for Git’s diff format.
Structs§
- A structure to represent an annotated commit, the input to merge and rebase.
- A builder struct for configuring checkouts of a repository.
- A structure to represent a git commit
- The results of
merge_analysisindicating the merge opportunities. - Options to specify when merging.
- Unique identity of any object (commit, tree, blob, tag).
- A structure to represent a git reference.
- An owned git repository, representing all state associated with the underlying filesystem.
- Git revision parameter. Supports extended SHA-1 syntax.
- A Signature is used to indicate authorship of various actions throughout the library.
Enums§
- An enumeration of the possible directions for a remote.
- An enumeration of possible errors that can happen when working with a git repository.
Constants§
Functions§
- Add signers to the repository’s
.gitsignersfile. - Get the name of the remote of the given branch, if any.
- Check that the system’s git version is supported. Returns an error otherwise.
- From a commit hash, return the signer’s fingerprint, if any.
- Configure SSH signing in the given git repo, for the given peer.
- Execute a git command by spawning a child process.
- Add a path to the repository’s git ignore file. Creates the ignore file if it does not exist.
- Check if the git remote is configured for the
Repository. - Check whether SSH or GPG signing is configured in the given repository.
- Parse a remote refspec into a peer id and ref.
- Get the repository’s “rad” remote.
- Return the list of radicle remotes for the given repository.
- Read a
.gitsignersfile. Returns SSH keys. - Get the git repository in the current directory.
- Setup an upstream tracking branch for the given remote and branch. Creates the tracking branch if it does not exist.
- Write a
.gitsignersfile in the given repository. Fails if the file already exists.