File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ fast-sha1 = [ "gix-features/fast-sha1" ]
126
126
127
127
128
128
[dependencies ]
129
+ gix-macros = { version = " ^0.0.0" , path = " ../gix-macros" }
129
130
gix-utils = { version = " ^0.1.5" , path = " ../gix-utils" }
130
131
gix-fs = { version = " ^0.5.0" , path = " ../gix-fs" }
131
132
gix-ref = { version = " ^0.35.0" , path = " ../gix-ref" }
Original file line number Diff line number Diff line change 2
2
use std:: path:: Path ;
3
3
4
4
pub use gix_discover:: * ;
5
+ use gix_macros:: momo;
5
6
6
7
use crate :: { bstr:: BString , ThreadSafeRepository } ;
7
8
@@ -31,6 +32,7 @@ impl ThreadSafeRepository {
31
32
/// if the directory that is discovered can indeed be trusted (or else they'd have to implement the discovery themselves
32
33
/// and be sure that no attacker ever gets access to a directory structure. The cost of this is a permission check, which
33
34
/// seems acceptable).
35
+ #[ momo]
34
36
pub fn discover_opts (
35
37
directory : impl AsRef < Path > ,
36
38
options : upwards:: Options < ' _ > ,
@@ -61,6 +63,8 @@ impl ThreadSafeRepository {
61
63
///
62
64
/// Finally, use the `trust_map` to determine which of our own repository options to use
63
65
/// based on the trust level of the effective repository directory.
66
+ #[ momo]
67
+ #[ allow( unused_mut) ]
64
68
pub fn discover_with_environment_overrides_opts (
65
69
directory : impl AsRef < Path > ,
66
70
mut options : upwards:: Options < ' _ > ,
You can’t perform that action at this time.
0 commit comments