pub fn remove<T: IntoCString>(&mut self, path: T) -> &mut Self {
        let path = util::cstring_to_repo_path(path).unwrap();
        let path_ptr = path.as_ptr();
        self.paths.push(path);
        self.updates.push(raw::git_tree_update {
            action: raw::GIT_TREE_UPDATE_REMOVE,
            id: raw::git_oid {
                id: [0; raw::GIT_OID_RAWSZ],
            },
            filemode: raw::GIT_FILEMODE_UNREADABLE,
            path: path_ptr,
        });
        self
    }
/// Add an update removing the specified `path` from a tree.
Add an update removing the specified `path` from a tree.
Add an update removing the specified ` path ` from a tree .
pub fn remove<T: IntoCString>(&mut self, path: T) -> &mut Self {
        let path = util::cstring_to_repo_path(path).unwrap();
        let path_ptr = path.as_ptr();
        self.paths.push(path);
        self.updates.push(raw::git_tree_update {
            action: raw::GIT_TREE_UPDATE_REMOVE,
            id: raw::git_oid {
                id: [0; raw::GIT_OID_RAWSZ],
            },
            filemode: raw::GIT_FILEMODE_UNREADABLE,
            path: path_ptr,
        });
        self
    }
pub fn remove < T : IntoCString > ( & mut self , path : T ) -> & mut Self { let path = util :: cstring_to_repo_path ( path ) . unwrap ( ) ; let path_ptr = path . as_ptr ( ) ; self . paths . push ( path ) ; self . updates . push ( raw :: git_tree_update { action : raw :: GIT_TREE_UPDATE_REMOVE , id : raw :: git_oid { id : [ 0 ; raw :: GIT_OID_RAWSZ ] , } , filemode : raw :: GIT_FILEMODE_UNREADABLE , path : path_ptr , } ) ; self }
Add an update removing the specified `path` from a tree.
Add an update removing the specified ` path ` from a tree .
&mut self
path
T
&mut self
path
T