Skip to content

Commit c45ac7f

Browse files
committed
Repository: Add doc comment for index_file()
1 parent 9a67562 commit c45ac7f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/git.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ impl RepositoryConfig {
137137
}
138138

139139
pub struct Repository {
140+
/// bla
140141
pub checkout_path: TempDir,
141142
repository: git2::Repository,
142143
pub credentials: Credentials,
@@ -186,6 +187,11 @@ impl Repository {
186187
})
187188
}
188189

190+
/// Returns the absolute path to the crate index file that corresponds to
191+
/// the given crate name.
192+
///
193+
/// This is similar to [Self::relative_index_file], but returns the absolute
194+
/// path.
189195
pub fn index_file(&self, name: &str) -> PathBuf {
190196
self.checkout_path
191197
.path()

0 commit comments

Comments
 (0)