Function: projectile--repo-url-owner
projectile--repo-url-owner is a byte-compiled function defined in
projectile.el.
Signature
(projectile--repo-url-owner REMOTE)
Documentation
Return the owner of the normalized REMOTE, or nil when it has none.
That's everything but the last segment: the account or organization a
forge hangs the repository off, or the directory a local repository sits
in. A remote with a single path segment (host/repo) has no owner worth
the name - the host isn't one - so it gets nil rather than something that
would put every repository on that host in one group.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--repo-url-owner (remote)
"Return the owner of the normalized REMOTE, or nil when it has none.
That's everything but the last segment: the account or organization a
forge hangs the repository off, or the directory a local repository sits
in. A remote with a single path segment (`host/repo') has no owner worth
the name - the host isn't one - so it gets nil rather than something that
would put every repository on that host in one group."
(when (and remote (string-match "\\`\\(.*/.+\\)/[^/]+\\'" remote))
(match-string 1 remote)))