@@ -17,9 +17,9 @@ fn find_git_repository_workdirs(
17
17
mut progress : impl Progress ,
18
18
debug : bool ,
19
19
threads : Option < usize > ,
20
- ) -> impl Iterator < Item = ( PathBuf , gix:: Kind ) > {
20
+ ) -> impl Iterator < Item = ( PathBuf , gix:: repository :: Kind ) > {
21
21
progress. init ( None , progress:: count ( "filesystem items" ) ) ;
22
- fn is_repository ( path : & Path ) -> Option < gix:: Kind > {
22
+ fn is_repository ( path : & Path ) -> Option < gix:: repository :: Kind > {
23
23
// Can be git dir or worktree checkout (file)
24
24
if path. file_name ( ) != Some ( OsStr :: new ( ".git" ) ) && path. extension ( ) != Some ( OsStr :: new ( "git" ) ) {
25
25
return None ;
@@ -33,7 +33,7 @@ fn find_git_repository_workdirs(
33
33
}
34
34
} else {
35
35
// git files are always worktrees
36
- Some ( gix:: Kind :: WorkTree { is_linked : true } )
36
+ Some ( gix:: repository :: Kind :: WorkTree { is_linked : true } )
37
37
}
38
38
}
39
39
fn into_workdir ( git_dir : PathBuf ) -> PathBuf {
@@ -46,7 +46,7 @@ fn find_git_repository_workdirs(
46
46
47
47
#[ derive( Debug , Default ) ]
48
48
struct State {
49
- kind : Option < gix:: Kind > ,
49
+ kind : Option < gix:: repository :: Kind > ,
50
50
}
51
51
52
52
let walk = jwalk:: WalkDirGeneric :: < ( ( ) , State ) > :: new ( root)
@@ -97,12 +97,12 @@ fn find_origin_remote(repo: &Path) -> anyhow::Result<Option<gix_url::Url>> {
97
97
98
98
fn handle (
99
99
mode : Mode ,
100
- kind : gix:: Kind ,
100
+ kind : gix:: repository :: Kind ,
101
101
git_workdir : & Path ,
102
102
canonicalized_destination : & Path ,
103
103
progress : & mut impl Progress ,
104
104
) -> anyhow:: Result < ( ) > {
105
- if let gix:: Kind :: WorkTree { is_linked : true } = kind {
105
+ if let gix:: repository :: Kind :: WorkTree { is_linked : true } = kind {
106
106
return Ok ( ( ) ) ;
107
107
}
108
108
fn to_relative ( path : PathBuf ) -> PathBuf {
@@ -166,11 +166,11 @@ fn handle(
166
166
. join ( to_relative ( {
167
167
let mut path = gix_url:: expand_path ( None , url. path . as_bstr ( ) ) ?;
168
168
match kind {
169
- gix:: Kind :: Submodule => {
169
+ gix:: repository :: Kind :: Submodule => {
170
170
unreachable ! ( "BUG: We should not try to relocated submodules and not find them the first place" )
171
171
}
172
- gix:: Kind :: Bare => path,
173
- gix:: Kind :: WorkTree { .. } => {
172
+ gix:: repository :: Kind :: Bare => path,
173
+ gix:: repository :: Kind :: WorkTree { .. } => {
174
174
if let Some ( ext) = path. extension ( ) {
175
175
if ext == "git" {
176
176
path. set_extension ( "" ) ;
0 commit comments