@@ -35,22 +35,26 @@ mod init {
3535 impl file:: Store {
3636 /// Create a new instance at the given `git_dir`, which commonly is a standard git repository with a
3737 /// `refs/` subdirectory.
38- /// The `object_hash` defines which kind of hash we should recognize .
38+ /// Use [`Options`](crate::store::init::Options) to adjust settings .
3939 ///
40- /// Note that if `precompose_unicode` is set, the `git_dir` is also expected to use precomposed unicode ,
41- /// or else some operations that strip prefixes will fail.
40+ /// Note that if [ `precompose_unicode`](crate::store::init::Options::precompose_unicode) is set in the options ,
41+ /// the `git_dir` is also expected to use precomposed unicode, or else some operations that strip prefixes will fail.
4242 pub fn at (
4343 git_dir : PathBuf ,
44- write_reflog : file:: WriteReflog ,
45- object_hash : gix_hash:: Kind ,
46- precompose_unicode : bool ,
44+ crate :: store:: init:: Options {
45+ write_reflog,
46+ object_hash,
47+ precompose_unicode,
48+ prohibit_windows_device_names,
49+ } : crate :: store:: init:: Options ,
4750 ) -> Self {
4851 file:: Store {
4952 git_dir,
5053 packed_buffer_mmap_threshold : packed_refs_mmap_threshold ( ) ,
5154 common_dir : None ,
5255 write_reflog,
5356 namespace : None ,
57+ prohibit_windows_device_names,
5458 packed : gix_fs:: SharedFileSnapshotMut :: new ( ) . into ( ) ,
5559 object_hash,
5660 precompose_unicode,
@@ -60,21 +64,25 @@ mod init {
6064 /// Like [`at()`][file::Store::at()], but for _linked_ work-trees which use `git_dir` as private ref store and `common_dir` for
6165 /// shared references.
6266 ///
63- /// Note that if `precompose_unicode` is set, the `git_dir` and `common_dir` are also expected to use precomposed unicode,
64- /// or else some operations that strip prefixes will fail.
67+ /// Note that if [ `precompose_unicode`](crate::store::init::Options::precompose_unicode) is set, the `git_dir` and
68+ /// `common_dir` are also expected to use precomposed unicode, or else some operations that strip prefixes will fail.
6569 pub fn for_linked_worktree (
6670 git_dir : PathBuf ,
6771 common_dir : PathBuf ,
68- write_reflog : file:: WriteReflog ,
69- object_hash : gix_hash:: Kind ,
70- precompose_unicode : bool ,
72+ crate :: store:: init:: Options {
73+ write_reflog,
74+ object_hash,
75+ precompose_unicode,
76+ prohibit_windows_device_names,
77+ } : crate :: store:: init:: Options ,
7178 ) -> Self {
7279 file:: Store {
7380 git_dir,
7481 packed_buffer_mmap_threshold : packed_refs_mmap_threshold ( ) ,
7582 common_dir : Some ( common_dir) ,
7683 write_reflog,
7784 namespace : None ,
85+ prohibit_windows_device_names,
7886 packed : gix_fs:: SharedFileSnapshotMut :: new ( ) . into ( ) ,
7987 object_hash,
8088 precompose_unicode,
0 commit comments