Skip to content

Commit ca6b334

Browse files
authored
Merge pull request #891 from albtam/update_flags_doc
Update RepositoryOpenFlags in doc
2 parents 3f85678 + 9e51285 commit ca6b334

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/repo.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl Repository {
155155

156156
/// Find and open an existing repository, respecting git environment
157157
/// 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`.
159159
/// With `$GIT_DIR` unset, this will search for a repository starting in
160160
/// the current directory.
161161
pub fn open_from_env() -> Result<Repository, Error> {
@@ -175,23 +175,23 @@ impl Repository {
175175

176176
/// Find and open an existing repository, with additional options.
177177
///
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
179179
/// directly to a repository; otherwise, this may point to a subdirectory
180180
/// of a repository, and `open_ext` will search up through parent
181181
/// directories.
182182
///
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
184184
/// directories will not cross a filesystem boundary (detected when the
185185
/// stat st_dev field changes).
186186
///
187-
/// If flags contains REPOSITORY_OPEN_BARE, force opening the repository as
187+
/// If flags contains [BARE](RepositoryOpenFlags::BARE), force opening the repository as
188188
/// bare even if it isn't, ignoring any working directory, and defer
189189
/// loading the repository configuration for performance.
190190
///
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
192192
/// `/.git` to `path`.
193193
///
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
195195
/// other flags and `ceiling_dirs`, and respect the same environment
196196
/// variables git does. Note, however, that `path` overrides `$GIT_DIR`; to
197197
/// respect `$GIT_DIR` as well, use `open_from_env`.

0 commit comments

Comments
 (0)