MCPcopy Create free account
hub / github.com/dashed/git-chain / get_git_log

Function get_git_log

tests/merge.rs:3497–3500  ·  view source on GitHub ↗

Helper function to get formatted git log output

(path_to_repo: &Path, num_entries: &str)

Source from the content-addressed store, hash-verified

3495
3496 // Helper function to get formatted git log output
3497 fn get_git_log(path_to_repo: &Path, num_entries: &str) -> String {
3498 let output = run_git_command(path_to_repo, vec!["log", "--oneline", "-n", num_entries]);
3499 String::from_utf8_lossy(&output.stdout).to_string()
3500 }
3501
3502 println!("=== MERGE SUBCOMMAND WITH SQUASHED MERGE OPTIONS ===");
3503 let repo_name = "merge_squashed_merge_options";

Calls 1

run_git_commandFunction · 0.85