@@ -155,7 +155,7 @@ impl Repository {
155
155
156
156
/// Find and open an existing repository, respecting git environment
157
157
/// variables. This acts like `open_ext` with the
158
- /// `REPOSITORY_OPEN_FROM_ENV` flag, but additionally respects `$GIT_DIR`.
158
+ /// [FROM_ENV](RepositoryOpenFlags::FROM_ENV) flag, but additionally respects `$GIT_DIR`.
159
159
/// With `$GIT_DIR` unset, this will search for a repository starting in
160
160
/// the current directory.
161
161
pub fn open_from_env ( ) -> Result < Repository , Error > {
@@ -175,23 +175,23 @@ impl Repository {
175
175
176
176
/// Find and open an existing repository, with additional options.
177
177
///
178
- /// If flags contains REPOSITORY_OPEN_NO_SEARCH , the path must point
178
+ /// If flags contains [NO_SEARCH](RepositoryOpenFlags::NO_SEARCH) , the path must point
179
179
/// directly to a repository; otherwise, this may point to a subdirectory
180
180
/// of a repository, and `open_ext` will search up through parent
181
181
/// directories.
182
182
///
183
- /// If flags contains REPOSITORY_OPEN_CROSS_FS , the search through parent
183
+ /// If flags contains [CROSS_FS](RepositoryOpenFlags::CROSS_FS) , the search through parent
184
184
/// directories will not cross a filesystem boundary (detected when the
185
185
/// stat st_dev field changes).
186
186
///
187
- /// If flags contains REPOSITORY_OPEN_BARE , force opening the repository as
187
+ /// If flags contains [BARE](RepositoryOpenFlags::BARE) , force opening the repository as
188
188
/// bare even if it isn't, ignoring any working directory, and defer
189
189
/// loading the repository configuration for performance.
190
190
///
191
- /// If flags contains REPOSITORY_OPEN_NO_DOTGIT , don't try appending
191
+ /// If flags contains [NO_DOTGIT](RepositoryOpenFlags::NO_DOTGIT) , don't try appending
192
192
/// `/.git` to `path`.
193
193
///
194
- /// If flags contains REPOSITORY_OPEN_FROM_ENV , `open_ext` will ignore
194
+ /// If flags contains [FROM_ENV](RepositoryOpenFlags::FROM_ENV) , `open_ext` will ignore
195
195
/// other flags and `ceiling_dirs`, and respect the same environment
196
196
/// variables git does. Note, however, that `path` overrides `$GIT_DIR`; to
197
197
/// respect `$GIT_DIR` as well, use `open_from_env`.
0 commit comments