radicle_cli

Module git

Source
Expand description

Git-related functions and types.

Modules§

  • DDiff is a diff between diffs. The type aids in the review of a Patch to a project by providing useful context between Patch updates a regular Diff will 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_analysis indicating 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 .gitsigners file.
  • 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 .gitsigners file. 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 .gitsigners file in the given repository. Fails if the file already exists.