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

Function execute_remote_git_success

src/apps/desktop/src/api/git_api.rs:85–101  ·  view source on GitHub ↗
(
    state: &AppState,
    target: &RemoteGitTarget,
    args: &[String],
)

Source from the content-addressed store, hash-verified

83}
84
85async fn execute_remote_git_success(
86 state: &AppState,
87 target: &RemoteGitTarget,
88 args: &[String],
89) -> Result<String, String> {
90 let output = execute_remote_git_command(state, target, args).await?;
91 if output.exit_code == 0 {
92 Ok(output.stdout)
93 } else {
94 let error = if output.stderr.trim().is_empty() {
95 output.stdout
96 } else {
97 output.stderr
98 };
99 Err(error.trim().to_string())
100 }
101}
102
103async fn execute_remote_git_operation(
104 state: &AppState,

Callers 9

git_get_repositoryFunction · 0.85
git_get_repository_basicFunction · 0.85
git_get_statusFunction · 0.85
git_get_branchesFunction · 0.85
git_get_commitsFunction · 0.85
git_get_diffFunction · 0.85
git_get_changed_filesFunction · 0.85
git_get_file_contentFunction · 0.85

Calls 3

trimMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected