cargo::sources::git

Module oxide

Source
Expand description

This module contains all code sporting gitoxide for operations on git repositories and it mirrors utils closely for now. One day it can be renamed into utils once git2 isn’t required anymore.

Enums§

  • The reason we are opening a git repository.

Functions§

  • Convert git related cargo configuration into the respective git configuration which can be used when opening new repositories.
  • Produce a repository with everything pre-configured according to config. Most notably this includes transport configuration. Knowing its purpose helps to optimize the way we open the repository. Use config_overrides to configure the new repository.
  • Reinitializes a given Git repository. This is useful when a Git repository seems corrupted and we want to start over.
  • For the time being, repo_path makes it easy to instantiate a gitoxide repo just for fetching. In future this may change to be the gitoxide repository itself.