git_error_context

Function git_error_context 

Source
pub fn git_error_context(command: &str, repo: Option<&str>) -> ErrorContext
Expand description

Create an error context for git operations

§Arguments

  • command - The git command that failed (e.g., “clone”, “fetch”, “pull”)
  • repo - Optional repository URL or path

§Example

use ccpm::core::error_builders::git_error_context;

let context = git_error_context("clone", Some("https://github.com/user/repo.git"));