pub fn summarize_repository<W: Write>(
    out: &ShellWriter<W>,
    opened: Result<Repository, Error>
)
Expand description

Summarize information about a repository.

This takes the Result from one of the Repository::open() functions.

Example

use git_status_vars::{summarize_repository, ShellWriter};
use git2::Repository;

summarize_repository(&ShellWriter::default(), Repository::open_from_env());