id_for_pathspec() static public method

Retrieve ids for $pathspec (string or array of strings) at the current branch head
static public id_for_pathspec ( $pathspec )
Example #1
0
 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;
 }