Function: projectile-locate-dominating-file-top-down
projectile-locate-dominating-file-top-down is a byte-compiled function
defined in projectile.el.
Signature
(projectile-locate-dominating-file-top-down FILE NAME)
Documentation
Look up the directory hierarchy from FILE for a directory containing NAME.
Unlike projectile-locate-dominating-file which returns the first (bottommost)
match, this returns the topmost match. Return nil if not found.
Instead of a string, NAME can also be a predicate taking one argument
(a directory) and returning a non-nil value if that directory is the one for
which we're looking.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-locate-dominating-file-top-down (file name)
"Look up the directory hierarchy from FILE for a directory containing NAME.
Unlike `projectile-locate-dominating-file' which returns the first (bottommost)
match, this returns the topmost match. Return nil if not found.
Instead of a string, NAME can also be a predicate taking one argument
\(a directory) and returning a non-nil value if that directory is the one for
which we're looking."
(projectile--locate-dominating-file file name nil))