mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-09 01:18:35 +03:00
Document Repo::new_for_path
This commit is contained in:
parent
8fc327296e
commit
1e744239cb
@ -35,6 +35,7 @@ unsafe fn from_glib_container_variant_set(ptr: *mut glib_sys::GHashTable) -> Has
|
||||
}
|
||||
|
||||
impl Repo {
|
||||
/// Create a new `Repo` object for working with an OSTree repo at the given path.
|
||||
pub fn new_for_path<P: AsRef<Path>>(path: P) -> Repo {
|
||||
Repo::new(&gio::File::new_for_path(path.as_ref()))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user