Skip to content

Commit c7b5162

Browse files
committed
comment other potential problems with blocking operations
1 parent 38579a6 commit c7b5162

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hoc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,15 @@ pub(crate) async fn hoc(params: &HocParams, state: &AppState) -> Result<()> {
9696
arg.push("--".to_string());
9797
arg.push(".".to_string());
9898

99+
// TODO: this is also kinda blocking but should be fast enough
99100
let output = Command::new("git")
100101
.args(&arg)
101102
.current_dir(&repo_path)
102103
.output()?
103104
.stdout;
104105
let output = String::from_utf8_lossy(&output);
105106

107+
// TODO: this is also kinda blocking but should be fast enough
106108
let output_commits = Command::new("git")
107109
.args(&arg_commit_count)
108110
.current_dir(&repo_path)

0 commit comments

Comments
 (0)