rsmultigit 0.1.2

Manage multiple git repositories at once
1
2
3
4
5
6
7
8
9
10
11
12
use std::path::Path;

use anyhow::Result;

use crate::subprocess_utils::check_call;

/// Show recent commits (git log --oneline -n N).
pub fn do_log(_project: &Path, count: u32) -> Result<bool> {
    let n = count.to_string();
    check_call("git", &["log", "--oneline", "-n", &n])?;
    Ok(true)
}