Indefero

Indefero Commit Details


Date:2012-07-10 17:17:23 (12 years 5 months ago)
Author:Thomas Keller
Branch:develop, release-1.3
Commit:22c1f92b2b299f6171eaada934eb5dc60fad6d1a
Parents: d17098e7037e448f01a35b99619d4959ac657558
Message:Use git's "find copies harder" algorithm to - well - find copies in changesets and render them as such.

Changes:

File differences

NEWS.mdtext
2929
3030
3131
32
33
3234
3335
3436
been copied. This has been changed insofar that now all properties except
the project's URL, logo and individual SCM settings are copied by default.
- Indefero now shows detected copies in git changesets.
# InDefero 1.3.2 - Wed May 09 20:05 2012 UTC
## Bugfixes
src/IDF/Scm/Git.php
5252
5353
5454
55
55
5656
5757
5858
59
59
6060
6161
6262
......
8989
9090
9191
92
93
94
9295
9396
9497
* A doc/Guide utilisateur/images/ftp-nautilus.png
* M doc/Guide utilisateur/textes/log_boot_PEGASE.txt
*
* Status letters mean : Added (A), Deleted (D), Modified (M), Renamed (R)
* Status letters mean : Added (A), Copied (C), Deleted (D), Modified (M), Renamed (R)
*/
public function getChanges($commit)
{
$cmd = sprintf('GIT_DIR=%s '.Pluf::f('git_path', 'git').' show %s --name-status --pretty="format:" --diff-filter="[A|D|M|R]" -M',
$cmd = sprintf('GIT_DIR=%s '.Pluf::f('git_path', 'git').' show %s --name-status --pretty="format:" --diff-filter="[A|C|D|M|R]" -C -C',
escapeshellarg($this->repo),
escapeshellarg($commit));
$out = array();
} else if ($action == 'R') {
$matches = preg_split("/\t/", $line);
$return->renames[$matches[1]] = $matches[2];
} else if ($action == 'C') {
$matches = preg_split("/\t/", $line);
$return->copies[$matches[1]] = $matches[2];
}
}
}

Archive Download the corresponding diff file

Page rendered in 0.07830s using 13 queries.