rsmultigit 0.1.2

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

use anyhow::Result;

use crate::subprocess_utils::check_call;

/// Stash working-tree changes.
pub fn stash_push(_project: &Path) -> Result<bool> {
    check_call("git", &["stash", "push"])?;
    Ok(true)
}

/// Pop the most recent stash.
pub fn stash_pop(_project: &Path) -> Result<bool> {
    check_call("git", &["stash", "pop"])?;
    Ok(true)
}