File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ impl Mode {
60
60
Mode :: COMMIT
61
61
} else if executable_bit && stat. is_executable ( ) {
62
62
Mode :: FILE_EXECUTABLE
63
+ } else if has_symlinks && stat. is_symlink ( ) {
64
+ Mode :: SYMLINK
63
65
} else {
64
66
Mode :: FILE
65
67
} ;
Original file line number Diff line number Diff line change @@ -620,7 +620,7 @@ fn refresh() {
620
620
BStr :: new( b"empty" ) ,
621
621
3 ,
622
622
Change :: Type {
623
- worktree_mode: entry:: Mode :: FILE
623
+ worktree_mode: entry:: Mode :: SYMLINK
624
624
}
625
625
. into( )
626
626
) ,
@@ -651,7 +651,7 @@ fn refresh() {
651
651
BStr :: new( "empty" ) ,
652
652
3 ,
653
653
Change :: Type {
654
- worktree_mode: entry:: Mode :: FILE
654
+ worktree_mode: entry:: Mode :: SYMLINK
655
655
}
656
656
. into( )
657
657
) ,
@@ -707,7 +707,7 @@ fn modified() {
707
707
BStr :: new ( b"empty" ) ,
708
708
3 ,
709
709
Change :: Type {
710
- worktree_mode : entry:: Mode :: FILE ,
710
+ worktree_mode : entry:: Mode :: SYMLINK ,
711
711
}
712
712
. into ( ) ,
713
713
) ,
@@ -738,7 +738,7 @@ fn modified() {
738
738
BStr :: new ( "empty" ) ,
739
739
3 ,
740
740
Change :: Type {
741
- worktree_mode : entry:: Mode :: FILE ,
741
+ worktree_mode : entry:: Mode :: SYMLINK ,
742
742
}
743
743
. into ( ) ,
744
744
) ,
You can’t perform that action at this time.
0 commit comments