| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | private function execute() |
||
| 13 | { |
||
| 14 | exec('git rev-parse --verify HEAD 2> /dev/null', $this->output, $this->rc); |
||
| 15 | |||
| 16 | $against = '4b825dc642cb6eb9a060e54bf8d69288fbee4904'; |
||
| 17 | if ($this->rc === 0) { |
||
| 18 | $against = 'HEAD'; |
||
| 19 | } |
||
| 20 | |||
| 21 | exec("git diff-index --cached --name-status $against | egrep '^(A|M)' | awk '{print $2;}'", $this->output); |
||
| 22 | } |
||
| 23 | |||
| 34 |