Module branchless::util[][src]

Utility functions.

Structs

GitExecutable

Path to the git executable on disk to be executed.

GitVersion

The parsed version of Git.

Functions

get_branch_oid_to_names

Get a mapping from OID to the names of branches which point to that OID.

get_db_conn

Get the connection to the SQLite database for this repository.

get_head_oid

Get the OID for the repository’s HEAD reference.

get_main_branch_oid

Get the OID corresponding to the main branch.

get_repo

Get the git repository associated with the current directory.

run_git

Run Git in a subprocess, and inform the user.

run_git_silent

Run Git silently (don’t display output to the user).

wrap_git_error

Convert a git2::Error into an anyhow::Error with an auto-generated message.