As Emacs opens a file it does all sorts of useful things including walking up the directory tree for more information (repos etc). I'm in a situation where I need to curtail that climb. Is there a mechanism for this or other work around?
Regexp of directory names which stop the search in ‘locate-dominating-file’. Any directory whose name matches this regexp will be treated like a kind of root directory by ‘locate-dominating-file’ which will stop its search when it bumps into it. The default regexp prevents fruitless and time-consuming attempts to find special files in directories in which filenames are interpreted as hostnames, or mount points potentially requiring authentication as a different user.