Click here to Skip to main content
15,891,951 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.

 
GeneralRe: Only if it was so simple! Pin
Richard Deeming15-Oct-20 21:55
mveRichard Deeming15-Oct-20 21:55 
GeneralWindows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon15-Oct-20 3:07
markrlondon15-Oct-20 3:07 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon15-Oct-20 3:24
markrlondon15-Oct-20 3:24 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon15-Oct-20 3:31
markrlondon15-Oct-20 3:31 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
GenJerDan15-Oct-20 4:45
GenJerDan15-Oct-20 4:45 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon15-Oct-20 5:02
markrlondon15-Oct-20 5:02 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon15-Oct-20 5:13
markrlondon15-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
trønderen15-Oct-20 4:50 
One lovable thing about git is that you never know which files will be in your directories. That in none of your business, sort of Smile | :)

For tl;dr people: Indexing makes very little sense in a directory tree where git pulls away the rug under your feet, maybe a dozen of times (or more) every working day.

A little more detail:

Open a command window in your git project directory. Checkout branch xxx, list the files. Checkout branch yyy, list the files. The two sets of files may be completely disjunct, non-overlapping (or only partially overlapping). You haven't done any cd at all, not deleted or created any file. Yet the dir command gives two very different results.

Open another command window, and cd to the same project directory. Which set of files will you see there, if you do a dir command?

Go back to the first command window, and checkout branch xxx. Return to the second command window and repeat the dir command. Some, maybe all the files you just saw a few seconds ago, have disappeared, and another set has appeared. In that window, there is no indication of any command causing the change.

It would look just the same if you - rather than checking out another git branch - in the first window had actually deleted some files and created some new ones. Usually you would consider that as really deleting info, and building new info, a semantically significant thing. But in git, when you check out another branch, the info is not deleted, it is just hidden. No new info is created, it is just pulled out from hiding.

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. 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?

Consider git project directories to be managed by git, neither by yourself nor Windows. (It took me quite some frustration before I learned to never have two command windows open in the same git project directory, in particular if you work on 2+ branches!)

If the git delevelopers want to provide an indexing and searching mechanisms tailored to the .git direcory and file strucutres, so it can report a hit e.g. indicating which branches the file are found in (whether checked out or not): Fine. But don't expect that every OS shall interpret .git structures (nor any other application's privately defined structures).
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon15-Oct-20 5:10
markrlondon15-Oct-20 5:10 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
dandy7215-Oct-20 5:49
dandy7215-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
dandy7215-Oct-20 7:09 
GeneralRe: Windows Search in Windows 10 not indexing folders that have a .git subfolder Pin
markrlondon16-Oct-20 7:23
markrlondon16-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
Tom_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
markrlondon16-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
Tom_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
markrlondon17-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
markrlondon16-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
Martijn 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
markrlondon16-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
markrlondon16-Oct-20 7:33 

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.