You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is the method hasChanges() which returns true, if there are any changed files.
But I don't see a method which returns what files have been changed.
Am I overlooking something?
The text was updated successfully, but these errors were encountered:
Yes.
I think about the implementation details.
We get filenames and a letter determine the type of status for any file (new file, modified file, deleted file) from git status command line.
example given "M myfile.php" would mean, the already added file myfile.php was changed.
So it makes sense to make getChanges() to return an associative array of filename => Type of status.
Additionally we should have constants for the file status type
GIT_FILE_STATUS_NEW
GIT_FILE_STATUS_CHANGED
GIT_FILE_STATUS_DELETED
Unfortunately i wasn't able to get the tests running on my Windoze machine.
But I verified it's function with a simple php script. Which just calls getChanges() on a repository and shows the output.
You have to extend your tests by yourself.
There is the method hasChanges() which returns true, if there are any changed files.
But I don't see a method which returns what files have been changed.
Am I overlooking something?
The text was updated successfully, but these errors were encountered: