id_for_pathspec() 정적인 공개 메소드

Retrieve ids for $pathspec (string or array of strings) at the current branch head
static public id_for_pathspec ( $pathspec )
예제 #1
0
파일: gitblog.php 프로젝트: rsms/gitblog
 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;
 }