1 | <?php |
||
5 | class GitChangeSet |
||
6 | { |
||
7 | /** |
||
8 | * Returns all files that have been created, changed, moved or deleted. |
||
9 | * |
||
10 | * @return FileList |
||
11 | */ |
||
12 | public static function getAllChanges() |
||
16 | |||
17 | /** |
||
18 | * Returns only the files created by this changeset. |
||
19 | * |
||
20 | * @return FileList |
||
21 | */ |
||
22 | public static function getAdded() |
||
26 | |||
27 | /** |
||
28 | * Returns files to be deleted by this changeset. |
||
29 | * |
||
30 | * @return FileList |
||
31 | */ |
||
32 | public static function getRemoved() |
||
36 | |||
37 | /** |
||
38 | * Returns all modified files. |
||
39 | * |
||
40 | * @return FileList |
||
41 | */ |
||
42 | public static function getModified() |
||
46 | |||
47 | /** |
||
48 | * Returns all files that have been copied or renmaed by this changeset. |
||
49 | * |
||
50 | * @return FileList |
||
51 | */ |
||
52 | public static function getCopiedOrMoved() |
||
56 | |||
57 | /** |
||
58 | * Returns all changed files except those that have been deleted. |
||
59 | * |
||
60 | * @return FileList |
||
61 | */ |
||
62 | public static function getAddedCopiedModified() |
||
66 | |||
67 | /** |
||
68 | * @param string|null $filter See https://git-scm.com/docs/git-diff (--diff-filter) |
||
69 | * |
||
70 | * @return FileList |
||
71 | */ |
||
72 | protected static function getFiltered($filter = null) |
||
96 | } |
||
97 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: