function isTracked() { # if it has a real ID, it's tracked if (!$this->isWorkVersion()) { return true; } # ask git try { if ($this->name && git::id_for_pathspec($this->name)) { return true; } } catch (GitError $e) { } return false; }