Dereckson has submitted this change and it was merged.

Change subject: Switch branch, check file is valid. New Git Class.
......................................................................


Switch branch, check file is valid. New Git Class.

Code now can switch branches and check if the file is within the given
path.

Also refactored the code to make it more readable. Created a new GitRepository
class in GitRepository.php.

New functions:
* CloneGitRepo will clone a git repository
* FindAndReadFile will look for the file and read its contents. Currently, it
only checks if file is valid. More functionality later.
* GitCheckoutBranch will switch branches

Removed chdir() from code.

Change-Id: I8cb413a1e8abe2e3741f6ef29465cdd156e34a38
---
M Git2Pages.body.php
A GitRepository.php
2 files changed, 70 insertions(+), 9 deletions(-)

Approvals:
  Dereckson: Verified; Looks good to me, approved


--
To view, visit https://gerrit.wikimedia.org/r/47187
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8cb413a1e8abe2e3741f6ef29465cdd156e34a38
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/Git2Pages
Gerrit-Branch: master
Gerrit-Owner: Terrrydactyl <[email protected]>
Gerrit-Reviewer: Dereckson <[email protected]>
Gerrit-Reviewer: Terrrydactyl <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to