Click here to Skip to main content
15,446,510 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralWindows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon15-Oct-20 3:07
Membermarkrlondon15-Oct-20 3:07 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon15-Oct-20 3:24
Membermarkrlondon15-Oct-20 3:24 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon15-Oct-20 3:31
Membermarkrlondon15-Oct-20 3:31 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
GenJerDan15-Oct-20 4:45
MemberGenJerDan15-Oct-20 4:45 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon15-Oct-20 5:02
Membermarkrlondon15-Oct-20 5:02 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon15-Oct-20 5:13
Membermarkrlondon15-Oct-20 5:13 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
trønderen15-Oct-20 4:50
Membertrønderen15-Oct-20 4:50 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon15-Oct-20 5:10
Membermarkrlondon15-Oct-20 5:10 
I'm far from being a Git expert so thanks for your rather enlightening comment.

However, even though Git does its own thing, one thing that can be guaranteed at any one time is that the contents of the subfolder that Git is managing will always correctly contain whatever is the current state of the current branch of the project. It has to do this in order for the IDE or editor to be able to find things where it expects them, and this applies to indexing too.

So Windows Search definitely can correctly index and search folders managed by Git with no difficulty or special uncertainty. It automatically re-indexes if Git (or the IDE or editor) changes the current state of the project. It really does just work without the index/search tool knowing anything whatsoever about Git. Smile | :)

From the perspective of Windows Search, Git is no different to an editor or IDE: It's just a thing that changes files, and WS responds to that by dynamically re-indexing them.

To respond to your specific question:

trønderen wrote:
How should the indexing handle this? Indexing is performed - on which files? Those that git has hidden? After indexing is complete, you check out another branch, so some of those files that were visible are now hiddden.

There is no difficulty at all. The indexer just indexes whatever is the current state of the files. When files change they are dynamically re-indexed. Honestly, it's an absolute non-problem in practice and, prior to Microsoft apparently mucking around with it, it worked very well in my experience and provided the answers that I expected.

trønderen wrote:
How would you handle a search that gives a hit in now hidden files? As if they were deleted? Or as if they are visible? How should this hit be reported to the user?

The same way as any other search when a file has either not yet been indexed or the file has changed but the index has not yet been updated (which is in fact extremely rare once indexing is initially completed).

modified 15-Oct-20 11:24am.

GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
dandy7215-Oct-20 5:49
Memberdandy7215-Oct-20 5:49 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
GuyThiebaut15-Oct-20 7:02
professionalGuyThiebaut15-Oct-20 7:02 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
dandy7215-Oct-20 7:09
Memberdandy7215-Oct-20 7:09 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon16-Oct-20 7:23
Membermarkrlondon16-Oct-20 7:23 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
thewazz16-Oct-20 10:39
professionalthewazz16-Oct-20 10:39 
AnswerRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
Tom_and_Frank15-Oct-20 7:37
MemberTom_and_Frank15-Oct-20 7:37 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon16-Oct-20 7:24
Membermarkrlondon16-Oct-20 7:24 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
Tom_and_Frank16-Oct-20 10:22
MemberTom_and_Frank16-Oct-20 10:22 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon17-Oct-20 1:10
Membermarkrlondon17-Oct-20 1:10 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
Kent Sharkey15-Oct-20 11:32
staffKent Sharkey15-Oct-20 11:32 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon16-Oct-20 7:27
Membermarkrlondon16-Oct-20 7:27 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
Martijn Smitshoek15-Oct-20 20:56
MemberMartijn Smitshoek15-Oct-20 20:56 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon16-Oct-20 7:31
Membermarkrlondon16-Oct-20 7:31 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
Rage15-Oct-20 20:56
professionalRage15-Oct-20 20:56 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
Nelek15-Oct-20 21:06
protectorNelek15-Oct-20 21:06 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon16-Oct-20 7:33
Membermarkrlondon16-Oct-20 7:33 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon16-Oct-20 8:35
Membermarkrlondon16-Oct-20 8:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

What topics would you like to learn more about?
Contributed by Marc Clifton.
  Results   549 votes