/** * Return a singleton for the repo at $IP * @return GitInfo */ public static function repo() { global $IP; if (is_null(self::$repo)) { self::$repo = new self($IP); } return self::$repo; }