1 | <?php |
||
7 | class GitChangeSet |
||
8 | { |
||
9 | /** |
||
10 | * Returns all files that have been created, changed, moved or deleted. |
||
11 | * |
||
12 | * @return FileList |
||
13 | */ |
||
14 | public static function getAllChanges() |
||
18 | |||
19 | /** |
||
20 | * Returns only the files created by this changeset. |
||
21 | * |
||
22 | * @return FileList |
||
23 | */ |
||
24 | public static function getAdded() |
||
28 | |||
29 | /** |
||
30 | * Returns files to be deleted by this changeset. |
||
31 | * |
||
32 | * @return FileList |
||
33 | */ |
||
34 | public static function getRemoved() |
||
38 | |||
39 | /** |
||
40 | * Returns all modified files. |
||
41 | * |
||
42 | * @return FileList |
||
43 | */ |
||
44 | public static function getModified() |
||
48 | |||
49 | /** |
||
50 | * Returns all files that have been copied or renmaed by this changeset. |
||
51 | * |
||
52 | * @return FileList |
||
53 | */ |
||
54 | public static function getCopiedOrMoved() |
||
58 | |||
59 | /** |
||
60 | * Returns all changed files except those that have been deleted. |
||
61 | * |
||
62 | * @return FileList |
||
63 | */ |
||
64 | public static function getAddedCopiedModified() |
||
68 | |||
69 | /** |
||
70 | * @param string|null $filter See https://git-scm.com/docs/git-diff (--diff-filter) |
||
71 | * |
||
72 | * @return FileList |
||
73 | */ |
||
74 | 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: