@@ -23,8 +23,8 @@ use crate::{
2323 blame:: { BlameQuery , BlameResult } ,
2424 change_list:: MuiTreeNode ,
2525 git:: {
26- CommitBindingInfo , CreateEntryInfo , DiffPreviewPayload , EditFilePayload ,
27- EditFileResult , TreeBriefItem , TreeCommitItem , TreeHashItem ,
26+ CommitBindingInfo , CreateEntryInfo , CreateEntryResult , DiffPreviewPayload ,
27+ EditFilePayload , EditFileResult , TreeBriefItem , TreeCommitItem , TreeHashItem ,
2828 } ,
2929 tag:: TagInfo ,
3030 } ,
@@ -115,8 +115,11 @@ pub trait ApiHandler: Send + Sync {
115115 blob_ops:: get_blob_as_string ( self , file_path, refs) . await
116116 }
117117
118- /// Create a file or directory entry under the monorepo path. Returns the new commit id on success.
119- async fn create_monorepo_entry ( & self , file_info : CreateEntryInfo ) -> Result < String , GitError > ;
118+ /// Create a file or directory entry under the monorepo path.
119+ async fn create_monorepo_entry (
120+ & self ,
121+ file_info : CreateEntryInfo ,
122+ ) -> Result < CreateEntryResult , GitError > ;
120123
121124 async fn get_raw_blob_by_hash ( & self , hash : & str ) -> Result < Vec < u8 > , MegaError > {
122125 self . get_context ( )
0 commit comments