Skip to content

Commit 2e04403

Browse files
committed
Add note to clarify what users might want to do (#1191)
This note should help to avoid to keep enforcing flags in places where they can't be 'unenforced' anymore, even if it means that users have to be aware of some necessary manual adjustments.
1 parent 85499e4 commit 2e04403

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gix/src/discover.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ impl ThreadSafeRepository {
6363
///
6464
/// Finally, use the `trust_map` to determine which of our own repository options to use
6565
/// based on the trust level of the effective repository directory.
66+
///
67+
/// ### Note
68+
///
69+
/// Consider to set [`match_ceiling_dir_or_error = false`](gix_discover::upwards::Options::match_ceiling_dir_or_error)
70+
/// to allow discovery if an outside environment variable sets non-matching ceiling directories for greater
71+
/// compatibility with Git.
6672
#[momo]
6773
pub fn discover_with_environment_overrides_opts(
6874
directory: impl AsRef<Path>,

0 commit comments

Comments
 (0)