MCPcopy Create free account
hub / github.com/GCWing/BitFun / build_remote_git_command

Function build_remote_git_command

src/apps/desktop/src/api/git_api.rs:52–61  ·  view source on GitHub ↗
(repository_path: &str, args: &[String])

Source from the content-addressed store, hash-verified

50}
51
52fn build_remote_git_command(repository_path: &str, args: &[String]) -> String {
53 let mut parts = vec![
54 "git".to_string(),
55 "-C".to_string(),
56 shell_quote(repository_path),
57 "--no-pager".to_string(),
58 ];
59 parts.extend(args.iter().map(|arg| shell_quote(arg)));
60 parts.join(" ")
61}
62
63async fn execute_remote_git_command(
64 state: &AppState,

Callers 1

Calls 3

shell_quoteFunction · 0.85
iterMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected