[PHP-CVS] com karma: replace git show by git diff in getChangedPaths: lib/Git/ReceiveHook.php
Commit:c69f9e879c21addbfa45cacd2c9dfbd10a345786 Author:Alexander Moskaliov ir...@php.net Tue, 27 Mar 2012 17:18:22 +0400 Parents: fd251cb983a0be8628d4e435aed2775cf37c5f71 Branches: master Link: http://git.php.net/?p=karma.git;a=commitdiff;h=c69f9e879c21addbfa45cacd2c9dfbd10a345786 Log: replace git show by git diff in getChangedPaths Changed paths: M lib/Git/ReceiveHook.php Diff: diff --git a/lib/Git/ReceiveHook.php b/lib/Git/ReceiveHook.php index 1bf4bfa..9ff67d1 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 --name-status --pretty=format: %s', $revRange); $paths = []; $lines = explode(\n, $raw); foreach($lines as $line) { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] com karma: replace git show by git diff in getChangedPaths: lib/Git/ReceiveHook.php
Commit:9f700801135cca87ce65c61a8753d743650d6443 Author:Alexander Moskaliov ir...@php.net Tue, 27 Mar 2012 17:18:22 +0400 Committer: David Soria Parra d...@php.net Fri, 22 Jun 2012 19:21:22 +0200 Parents: 0f4a8cdd72b0fabce293a9206db6b5710cbc9d76 Branches: master Link: http://git.php.net/?p=karma.git;a=commitdiff;h=9f700801135cca87ce65c61a8753d743650d6443 Log: replace git show by git diff in getChangedPaths Changed paths: M lib/Git/ReceiveHook.php Diff: diff --git a/lib/Git/ReceiveHook.php b/lib/Git/ReceiveHook.php index 8faedec..9db917d 100644 --- a/lib/Git/ReceiveHook.php +++ b/lib/Git/ReceiveHook.php @@ -83,7 +83,7 @@ abstract class ReceiveHook */ protected function getChangedPaths($revRange, $reverse = false) { -$raw = \Git::gitExec('diff-tree ' . ($reverse ? '-R ' : '') . '-r --no-commit-id -c --name-status --pretty=format: %s', $revRange); +$raw = \Git::gitExec('diff --name-status --pretty=format: %s', $revRange); $paths = []; $lines = explode(\n, $raw); foreach($lines as $line) { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] com karma: replace git show by git diff in getChangedPaths: lib/Git/ReceiveHook.php
Commit:c69f9e879c21addbfa45cacd2c9dfbd10a345786 Author:Alexander Moskaliov ir...@php.net Tue, 27 Mar 2012 17:18:22 +0400 Parents: fd251cb983a0be8628d4e435aed2775cf37c5f71 Branches: master Link: http://git.php.net/?p=karma.git;a=commitdiff;h=c69f9e879c21addbfa45cacd2c9dfbd10a345786 Log: replace git show by git diff in getChangedPaths Changed paths: M lib/Git/ReceiveHook.php Diff: c69f9e879c21addbfa45cacd2c9dfbd10a345786 diff --git a/lib/Git/ReceiveHook.php b/lib/Git/ReceiveHook.php index 1bf4bfa..9ff67d1 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 --name-status --pretty=format: %s', $revRange); $paths = []; $lines = explode(\n, $raw); foreach($lines as $line) { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php