com karma: replace git show in getChangedPaths by git diff-tree: lib/Git/ReceiveHook.php
| From: | Alexander Moskaliov | Date: | Wed, 28 Mar 2012 06:25:02 +0000 |
| Subject: | com karma: replace git show in getChangedPaths by git diff-tree: lib/Git/ReceiveHook.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68211@lists.php.net to get a copy of this message | ||
Commit: 3082cb40bcf3f11894b70ccd735ecda9f94fc899
Author: Alexander Moskaliov <irker@php.net> Wed, 28 Mar 2012 10:25:02 +0400
Parents: fd251cb983a0be8628d4e435aed2775cf37c5f71
Branches: master
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=3082cb40bcf3f11894b70ccd735ecda9f94fc899
Log:
replace git show in getChangedPaths by git diff-tree
Changed paths:
M lib/Git/ReceiveHook.php
Diff:
3082cb40bcf3f11894b70ccd735ecda9f94fc899
diff --git a/lib/Git/ReceiveHook.php b/lib/Git/ReceiveHook.php
index 1bf4bfa..0100d6e 100644
--- a/lib/Git/ReceiveHook.php
+++ b/lib/Git/ReceiveHook.php
@@ -82,7 +82,7 @@ abstract class ReceiveHook
*/
protected function getChangedPaths($revRange)
{
- $raw = \Git::gitExec('show --name-status --pretty="format:" %s',
$revRange);
+ $raw = \Git::gitExec('diff-tree -r --no-commit-id -c --name-status
--pretty="format:" %s', $revRange);
$paths = [];
$lines = explode("\n", $raw);
foreach($lines as $line) {